|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.relaggs.RelaggsDate
public class RelaggsDate
Title: RelaggsDate Description: Stores the date in different formats.
Field Summary | |
---|---|
static int |
TYPE_Y
Constant representing a YEAR format. |
static int |
TYPE_YM
Constant representing a YEAR-MONTH format. |
static int |
TYPE_YMD
Constant representing a YEAR-MONTH-DAY format. |
Constructor Summary | |
---|---|
RelaggsDate(java.sql.Date date)
Creates a new RelaggsDate in the Year-Month-Day format. |
|
RelaggsDate(java.sql.Date date,
int type)
Creates a new RelaggsDate in the the given format type. |
|
RelaggsDate(java.lang.String hash_key)
Creates a new RelaggsDate from the hash key. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Return whether this RelaggsDate equals the given object. |
java.lang.String |
getColumnString()
Returns the part of the column name that represents the date defined by this object according to the type. |
int |
getDay()
Returns the day of the date. |
java.lang.String |
getHashKey()
Returns the hash key of the date. |
int |
getMonth()
Returns the month of the date. |
int |
getType()
Returns the type format of the date. |
int |
getYear()
Returns the year of the date. |
java.lang.String |
toString()
Returns the date in the format: 'YEAR-MONTH-DAY [FORMAT_TYPE]' |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_YMD
public static final int TYPE_YM
public static final int TYPE_Y
Constructor Detail |
---|
public RelaggsDate(java.sql.Date date)
date
- the date to storepublic RelaggsDate(java.sql.Date date, int type)
date
- the date to storetype
- the format type (TYPE_YMD, TYPE_YM, TYPE_Y)public RelaggsDate(java.lang.String hash_key)
hash_key
- the hash key representing the dateMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getType()
public int getDay()
public int getMonth()
public int getYear()
public java.lang.String getHashKey()
public java.lang.String getColumnString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |