|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that allows a batch retrieval of tracks in order to atone for the inherent slowness of retrieving their attributes from the database on a per track basis, resulting in a huge number of queries.
| Method Summary | |
void |
addTrack(long id)
Add a trackID to this batch for retrieval. |
void |
addTracks(java.util.List idlist)
Add all of the IDs from this list to the batch for retrieval The List specified must contain Long objects. |
java.util.Map |
getTracks()
Retrieve the tracks with the ids that this loader has been told about. |
void |
reset()
Clear the IDs to retrieve |
| Method Detail |
public java.util.Map getTracks()
Map of Track objects
keyed by Track ID. The Track IDs themselves are Long
objects.
Long objects containing Track objects.public void addTrack(long id)
id - The ID to add to the batch.public void addTracks(java.util.List idlist)
idlist - A List of Long objects representing
the IDs of Tracks to add to the batch.public void reset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||