|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neoworks.jukex.sqlimpl.JukeXTrack
This object represents a Track within the JukeX system.
Constructor Summary | |
JukeXTrack(long id,
java.net.URL url,
java.util.Date updated)
Creates a new instance of JukeXTrack |
Method Summary | |
void |
addAttributeValue(Attribute attribute,
AttributeValue value)
Adds an AttributeValue to an existing Attribute on this Track. |
void |
clearAttribute(Attribute attribute)
Removes all of the values for this track from the passed Attribute |
AttributeValue |
getAttributeValue(Attribute attribute)
Return the first AttributeValue object for a specified Attribute |
AttributeValue |
getAttributeValue(java.lang.String attributename)
Get an AttributeValue on this Track by name |
java.util.Collection |
getAttributeValues(Attribute attribute)
Retrieve all of the AttributeValue objects corresponding to the given Attribute. |
long |
getId()
Return the database ID of this Track |
java.util.Collection |
getKnownAttributes()
Retrieve a Collection of all Attribute objects which this track has. |
java.util.Date |
getUpdatedDate()
Return the last time that this Track was updated in the database. |
java.net.URL |
getURL()
Return the URL of the Track's location |
void |
replaceAttributeValues(Attribute attribute,
AttributeValue value)
Replace all of the current attribute values with the one passed |
void |
setUpdatedDate(java.util.Date newdate)
Set the time that this Track was updated. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JukeXTrack(long id, java.net.URL url, java.util.Date updated)
Method Detail |
public java.util.Collection getAttributeValues(Attribute attribute)
Track
getAttributeValues
in interface Track
attribute
- The Attribute for which the values are to be retrieved
public void replaceAttributeValues(Attribute attribute, AttributeValue value)
Track
replaceAttributeValues
in interface Track
attribute
- The Attribute to have its values changedvalue
- The AttributeValue to become the new valuepublic java.util.Collection getKnownAttributes()
Track
getKnownAttributes
in interface Track
public void addAttributeValue(Attribute attribute, AttributeValue value)
Track
addAttributeValue
in interface Track
attribute
- The Attribute to whom the value is to be addedvalue
- The AttributeValue to addpublic void clearAttribute(Attribute attribute)
Track
clearAttribute
in interface Track
attribute
- The Attribute to remove the values ofpublic java.net.URL getURL()
Track
getURL
in interface Track
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getUpdatedDate()
Track
getUpdatedDate
in interface Track
public void setUpdatedDate(java.util.Date newdate)
Track
setUpdatedDate
in interface Track
newdate
- The updated Date to attach to the track.public long getId()
Track
getId
in interface Track
public AttributeValue getAttributeValue(Attribute attribute)
getAttributeValue
in interface Track
attribute
- The Attribute to get the value of
public AttributeValue getAttributeValue(java.lang.String attributename)
getAttributeValue
in interface Track
attributename
- The name of the Attribute to query for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |