com.xenonsoft.bridgetown.test.aop.transaction
Class Track

java.lang.Object
  extended bycom.xenonsoft.bridgetown.test.aop.transaction.Track

public class Track
extends java.lang.Object

This is the MP3 Track value object inspired by the book "Hibernate: A Developer's Notebook" published by O'Reilly.

Version:
$Id: Track.java,v 1.2 2005/03/29 23:42:26 peter_pilgrim Exp $
Author:
Peter Pilgrim, 14-Mar-2005 15:04:09

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

trackId

protected int trackId
track identifier


trackName

protected java.lang.String trackName
name of the track


filePath

protected java.lang.String filePath
file path of the track on disk drive


artistName

protected java.lang.String artistName
Name of the artist or group


played

protected int played
How many have we played this track?


playTime

protected java.util.Date playTime
The play length of the track


volume

protected short volume
The best volume to play this track


added

protected java.util.Date added
When the track was added

Constructor Detail

Track

public Track()
Default constructor


Track

public Track(java.lang.String trackName,
             java.lang.String filePath,
             java.lang.String artistName,
             java.util.Date playTime,
             short volume)
Standard constructor

Parameters:
trackName - the name of the track
filePath - the file path
artistName - name of the artist
playTime - the length of the track
volume - the start volume

Track

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)
Standard constructor

Parameters:
trackName - the name of the track
filePath - the file path
artistName - name of the artist
played - number of times played
playTime - the length of the track
volume - the start volume
added - the creation date
Method Detail

getArtistName

public java.lang.String getArtistName()
Gets the artistName

Returns:
Returns the artistName.

setArtistName

public void setArtistName(java.lang.String artistName)
Sets the artistName

Parameters:
artistName - the new value for artistName

getPlayed

public int getPlayed()
Gets the played

Returns:
Returns the played.

setPlayed

public void setPlayed(int played)
Sets the played

Parameters:
played - the new value for played

getPlayTime

public java.util.Date getPlayTime()
Gets the playTime

Returns:
Returns the playTime.

setPlayTime

public void setPlayTime(java.util.Date playTime)
Sets the playTime

Parameters:
playTime - the new value for playTime

getTrackId

public int getTrackId()
Gets the trackId

Returns:
Returns the trackId.

setTrackId

public void setTrackId(int trackId)
Sets the trackId

Parameters:
trackId - the new value for trackId

getTrackName

public java.lang.String getTrackName()
Gets the trackName

Returns:
Returns the trackName.

setTrackName

public void setTrackName(java.lang.String trackName)
Sets the trackName

Parameters:
trackName - the new value for trackName

getAdded

public java.util.Date getAdded()
Gets the added

Returns:
Returns the added.

setAdded

public void setAdded(java.util.Date added)
Sets the added

Parameters:
added - the new value for added

getFilePath

public java.lang.String getFilePath()
Gets the filePath

Returns:
Returns the filePath.

setFilePath

public void setFilePath(java.lang.String filePath)
Sets the filePath

Parameters:
filePath - the new value for filePath

getVolume

public short getVolume()
Gets the volume

Returns:
Returns the volume.

setVolume

public void setVolume(short volume)
Sets the volume

Parameters:
volume - the new value for volume

toString

public java.lang.String toString()
Implements / overrides toString

Returns:
the string
See Also:
Object.toString()


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.