- Version:
- 4.0
- Author:
- Emil A. Lefkof III
- See Also:
- Serialized Form
|
Constructor Summary |
Track()
default constructor |
Track(Long id)
constructor with id |
| Methods inherited from class com.jgoodies.binding.beans.Model |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
PROPERTYNAME_CREATED_DATE
public static final String PROPERTYNAME_CREATED_DATE
- See Also:
- Constant Field Values
PROPERTYNAME_MODIFIED_DATE
public static final String PROPERTYNAME_MODIFIED_DATE
- See Also:
- Constant Field Values
PROPERTYNAME_DURATION
public static final String PROPERTYNAME_DURATION
- See Also:
- Constant Field Values
PROPERTYNAME_ID
public static final String PROPERTYNAME_ID
- See Also:
- Constant Field Values
PROPERTYNAME_BITRATE
public static final String PROPERTYNAME_BITRATE
- See Also:
- Constant Field Values
PROPERTYNAME_COMMENT
public static final String PROPERTYNAME_COMMENT
- See Also:
- Constant Field Values
PROPERTYNAME_CREATED_USER
public static final String PROPERTYNAME_CREATED_USER
- See Also:
- Constant Field Values
PROPERTYNAME_DURATION_TIME
public static final String PROPERTYNAME_DURATION_TIME
- See Also:
- Constant Field Values
PROPERTYNAME_MODIFIED_USER
public static final String PROPERTYNAME_MODIFIED_USER
- See Also:
- Constant Field Values
PROPERTYNAME_NAME
public static final String PROPERTYNAME_NAME
- See Also:
- Constant Field Values
PROPERTYNAME_TRACK_NUMBER
public static final String PROPERTYNAME_TRACK_NUMBER
- See Also:
- Constant Field Values
PROPERTYNAME_TRACK_URL
public static final String PROPERTYNAME_TRACK_URL
- See Also:
- Constant Field Values
PROPERTYNAME_TRACK_SIZE
public static final String PROPERTYNAME_TRACK_SIZE
- See Also:
- Constant Field Values
Track
public Track()
- default constructor
Track
public Track(Long id)
- constructor with id
getAuditDate
public Date getAuditDate()
- This date determines how the NEW flag is checked in the isNew() function.
- Specified by:
getAuditDate in class AbstractJukesObject
- Returns:
- the created date is used to check in the isNew() function
getBitrate
public Long getBitrate()
getChildCount
public int getChildCount()
- This is used to fool the tree for lazy loading of tree nodes.
- Specified by:
getChildCount in class AbstractJukesObject
- Returns:
- the number of children this object has
getComment
public String getComment()
- Gets the comment.
- Returns:
- Returns the comment.
getCreatedDate
public Date getCreatedDate()
- Description copied from class:
AbstractJukesObject
- Method implemented in each ORM class. This returns the audit created
date.
- Specified by:
getCreatedDate in interface Auditable- Specified by:
getCreatedDate in class AbstractJukesObject
- Returns:
- the created date
getCreatedUser
public String getCreatedUser()
- Specified by:
getCreatedUser in interface Auditable
getDisc
public Disc getDisc()
getDisplayText
public String getDisplayText(String aFormat)
- Gets the display format based on a format from prefs. The format is in
aFormat and can have values %b for bitrate, %n for track number,
%r for duration, and %t for title.
Examples:
%n -%t = 01 - Track.mp3
- Parameters:
aFormat - the string format like %n -%t to display 01 - Track.mp3
- Returns:
- the value of the display text
getDuration
public long getDuration()
getDurationTime
public String getDurationTime()
getId
public Long getId()
- Description copied from class:
AbstractJukesObject
- All objects must implement a unique identifier.
- Specified by:
getId in interface Auditable- Specified by:
getId in class AbstractJukesObject
- Returns:
- the id of the object
getModifiedDate
public Date getModifiedDate()
- Description copied from class:
AbstractJukesObject
- Method implemented in each ORM class. This returns the audit modified
date.
- Specified by:
getModifiedDate in interface Auditable- Specified by:
getModifiedDate in class AbstractJukesObject
- Returns:
- the modification date
getModifiedUser
public String getModifiedUser()
- Specified by:
getModifiedUser in interface Auditable
getName
public String getName()
- Description copied from class:
AbstractJukesObject
- All objects must implement a name function to describe this object.
- Specified by:
getName in class AbstractJukesObject
- Returns:
- the name of the object
getTrackNumber
public String getTrackNumber()
getTrackSize
public long getTrackSize()
- Gets the trackSize.
- Returns:
- Returns the trackSize.
getTrackUrl
public String getTrackUrl()
setBitrate
public void setBitrate(Long bitrate)
setComment
public void setComment(String aComment)
- Sets the comment.
- Parameters:
aComment - The comment to set.
setCreatedDate
public void setCreatedDate(Date createdDate)
- Specified by:
setCreatedDate in interface Auditable
setCreatedUser
public void setCreatedUser(String createdUser)
- Specified by:
setCreatedUser in interface Auditable
setDisc
public void setDisc(Disc disc)
setDuration
public void setDuration(long duration)
setDurationTime
public void setDurationTime(String durationTime)
setId
public void setId(Long id)
setModifiedDate
public void setModifiedDate(Date modifiedDate)
- Specified by:
setModifiedDate in interface Auditable
setModifiedUser
public void setModifiedUser(String modifiedUser)
- Specified by:
setModifiedUser in interface Auditable
setName
public void setName(String name)
setTrackNumber
public void setTrackNumber(String trackNumber)
setTrackSize
public void setTrackSize(long aTrackSize)
- Sets the trackSize.
- Parameters:
aTrackSize - The trackSize to set.
setTrackUrl
public void setTrackUrl(String trackUrl)
isValid
public boolean isValid()
- Description copied from class:
AbstractJukesObject
- Gets the valid flag.
- Specified by:
isValid in class AbstractJukesObject
- Returns:
- Returns the valid flag.
compareTo
public int compareTo(Object object)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1999-2010 Melloware Inc. All Rights Reserved.