|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.dao.PlaylistKey
public class PlaylistKey
A PlaylistKey is a helperclass to extract information from real id's of Playlists. PlaylistID's have the following meaning: - Positive long's point to a record in the database. - Negative long's have the following form yyyymmddkkkk where kkkk is the kind of the special item to load dd is the day of the month (1..28,29,30 or 31) mm is The month (1...12) yyyy is The year (0...9999) If yyyy and mm are 0, then there is no date-part present.
Constructor Summary | |
---|---|
PlaylistKey(int kind,
java.util.Date date)
Constructs a PlaylistKey from a kind and a Date. |
|
PlaylistKey(long id)
|
Method Summary | |
---|---|
void |
addMonth()
Adds one month to the date-part of this PlaylistKey. |
java.util.Date |
getFilter()
|
long |
getId()
|
int |
getKind()
|
boolean |
isSpecial()
|
void |
substractMonth()
Subtracts one month to the date-part of this PlaylistKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlaylistKey(long id)
public PlaylistKey(int kind, java.util.Date date)
kind
- The kind (-9999...0)date
- a DateMethod Detail |
---|
public boolean isSpecial()
public long getId()
public int getKind()
public java.util.Date getFilter()
public void addMonth()
public void substractMonth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |