com.virtuosotechnologies.asaph.model
Interface SongIDResultSet.Entry

Enclosing interface:
SongIDResultSet

public static interface SongIDResultSet.Entry

Interface representing an entry in the set.


Method Summary
 void clearSongCache()
          Clear the cached song, if present.
 Object getData()
          Get the data object for this entry
 Song getSong()
          Check out the Song referenced by this entry.
 SongID getSongID()
          Get the SongID for this entry
 void setData(Object data)
          Set the data object for this entry
 

Method Detail

getSongID

public SongID getSongID()
Get the SongID for this entry

Returns:
the SongID

getData

public Object getData()
Get the data object for this entry

Returns:
the data object

setData

public void setData(Object data)
Set the data object for this entry

Parameters:
data - the data object

getSong

public Song getSong()
Check out the Song referenced by this entry. Returns the Song, or null if the checkout fails for some reason. Also caches the value so that subsequent calls will return the cached value rather than checking out the song again. If the first checkout fails, a null value will be cached and returned from subsequent calls (i.e. an entry will try to check out a Song at most once).

Returns:
the Song

clearSongCache

public void clearSongCache()
Clear the cached song, if present.