|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.test.aop.transaction.Track
This is the MP3 Track value object inspired by the book "Hibernate: A Developer's Notebook" published by O'Reilly.
| Field Summary | |
protected java.util.Date |
added
When the track was added |
protected java.lang.String |
artistName
Name of the artist or group |
protected java.lang.String |
filePath
file path of the track on disk drive |
protected int |
played
How many have we played this track? |
protected java.util.Date |
playTime
The play length of the track |
protected int |
trackId
track identifier |
protected java.lang.String |
trackName
name of the track |
protected short |
volume
The best volume to play this track |
| Constructor Summary | |
Track()
Default constructor |
|
Track(java.lang.String trackName,
java.lang.String filePath,
java.lang.String artistName,
java.util.Date playTime,
short volume)
Standard constructor |
|
Track(java.lang.String trackName,
java.lang.String filePath,
java.lang.String artistName,
int played,
java.util.Date playTime,
short volume,
java.util.Date added)
Standard constructor |
|
| Method Summary | |
java.util.Date |
getAdded()
Gets the added |
java.lang.String |
getArtistName()
Gets the artistName |
java.lang.String |
getFilePath()
Gets the filePath |
int |
getPlayed()
Gets the played |
java.util.Date |
getPlayTime()
Gets the playTime |
int |
getTrackId()
Gets the trackId |
java.lang.String |
getTrackName()
Gets the trackName |
short |
getVolume()
Gets the volume |
void |
setAdded(java.util.Date added)
Sets the added |
void |
setArtistName(java.lang.String artistName)
Sets the artistName |
void |
setFilePath(java.lang.String filePath)
Sets the filePath |
void |
setPlayed(int played)
Sets the played |
void |
setPlayTime(java.util.Date playTime)
Sets the playTime |
void |
setTrackId(int trackId)
Sets the trackId |
void |
setTrackName(java.lang.String trackName)
Sets the trackName |
void |
setVolume(short volume)
Sets the volume |
java.lang.String |
toString()
Implements / overrides toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int trackId
protected java.lang.String trackName
protected java.lang.String filePath
protected java.lang.String artistName
protected int played
protected java.util.Date playTime
protected short volume
protected java.util.Date added
| Constructor Detail |
public Track()
public Track(java.lang.String trackName,
java.lang.String filePath,
java.lang.String artistName,
java.util.Date playTime,
short volume)
trackName - the name of the trackfilePath - the file pathartistName - name of the artistplayTime - the length of the trackvolume - the start volume
public Track(java.lang.String trackName,
java.lang.String filePath,
java.lang.String artistName,
int played,
java.util.Date playTime,
short volume,
java.util.Date added)
trackName - the name of the trackfilePath - the file pathartistName - name of the artistplayed - number of times playedplayTime - the length of the trackvolume - the start volumeadded - the creation date| Method Detail |
public java.lang.String getArtistName()
public void setArtistName(java.lang.String artistName)
artistName - the new value for artistNamepublic int getPlayed()
public void setPlayed(int played)
played - the new value for playedpublic java.util.Date getPlayTime()
public void setPlayTime(java.util.Date playTime)
playTime - the new value for playTimepublic int getTrackId()
public void setTrackId(int trackId)
trackId - the new value for trackIdpublic java.lang.String getTrackName()
public void setTrackName(java.lang.String trackName)
trackName - the new value for trackNamepublic java.util.Date getAdded()
public void setAdded(java.util.Date added)
added - the new value for addedpublic java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
filePath - the new value for filePathpublic short getVolume()
public void setVolume(short volume)
volume - the new value for volumepublic java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||