|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TrackStore is the core of the JukeX system. The TrackStore provides the means to access all core objects. It handles all database operations.
Method Summary | |
Attribute |
createAttribute(java.lang.String name,
int type)
Return an attribute of the corresponding name and type, creating a new attribute within the system if necessary. |
Playlist |
createPlaylist(java.lang.String name)
Get the Playlist with the specified name, or create it if it does not already exist. |
java.util.Collection |
getAllPlaylists()
Return all of the Playlists currently defined |
Attribute |
getAttribute(java.lang.String name)
Return the Attribute object representing the attribute with that name |
java.util.Set |
getAttributes()
Get a list of all the attributes currently supported by the system |
BatchTrackLoader |
getBatchTrackLoader()
Return a batch track loader |
Playlist |
getPlaylist(java.lang.String name)
Get the Playlist with the specified name |
Track |
getTrack(long id)
Get a Track object by database id |
Track |
getTrack(java.net.URL url)
Get a Track object by URL |
long |
getTrackCount()
Get the number of tracks in the Track database |
long[] |
getTrackIds()
Get an array containing the ids of the tracks in the Track database |
java.util.List |
getTracks(java.util.List ids)
Retrieve a List of Track objects with ids as
specified in a List of Integers. |
java.util.List |
getTracks(long[] ids)
Retrieve a List of Track objects with ids as
specified. |
Track |
storeTrack(java.net.URL url,
java.util.Date modifieddate)
Create a track in the database with the specified url and return the object representing that track. |
Method Detail |
public Track getTrack(java.net.URL url)
url
- The URL of the track
public Track getTrack(long id)
id
- The track id
public java.util.List getTracks(long[] ids)
List
of Track
objects with ids as
specified.
ids
- Array of ids for the Tracks to retrieve
List
of Track
objectspublic long getTrackCount()
public long[] getTrackIds()
public java.util.List getTracks(java.util.List ids)
List
of Track
objects with ids as
specified in a List of Integers.
ids
- The List of Integer objects of ids of Tracks to retrieve
List
of Track
objectspublic Track storeTrack(java.net.URL url, java.util.Date modifieddate)
url
- The URL of the track to be added to the databasemodifieddate
- The date that this Track entry was modified
public Attribute getAttribute(java.lang.String name)
Attribute
object representing the name passed, or null
, if it is not found.public java.util.Set getAttributes()
Set
of all Attribute
objects
currently available in the database.public Attribute createAttribute(java.lang.String name, int type) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getAllPlaylists()
public Playlist getPlaylist(java.lang.String name)
null
if one
does not exist.public Playlist createPlaylist(java.lang.String name)
public BatchTrackLoader getBatchTrackLoader()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |