|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.om.ObjectKey
org.apache.torque.om.SimpleKey
org.apache.torque.om.DateKey
public class DateKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id is a Date.
| Field Summary |
|---|
| Fields inherited from class org.apache.torque.om.ObjectKey |
|---|
key |
| Constructor Summary | |
|---|---|
DateKey()
Creates an DateKey whose internal representation will be set later, through a set method |
|
DateKey(java.util.Date key)
Creates a DateKey |
|
DateKey(DateKey key)
Creates a DateKey that is equivalent to key. |
|
DateKey(java.lang.String key)
Creates a DateKey whose internal representation is a Date given by the long number given by the String |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object keyObj)
keyObj is equal to this DateKey if keyObj is a DateKey or String that contains the same information this key contains. |
java.util.Date |
getDate()
Access the underlying Date object. |
void |
setValue(DateKey key)
Sets the internal representation to the same object used by key. |
void |
setValue(java.lang.String key)
Sets the internal representation to a String |
java.lang.String |
toString()
get a String representation |
| Methods inherited from class org.apache.torque.om.SimpleKey |
|---|
keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor |
| Methods inherited from class org.apache.torque.om.ObjectKey |
|---|
appendTo, compareTo, getValue, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateKey()
public DateKey(java.lang.String key)
key - the key value
java.lang.NumberFormatException - if key is not validpublic DateKey(java.util.Date key)
key - the key valuepublic DateKey(DateKey key)
key - the key value| Method Detail |
|---|
public void setValue(java.lang.String key)
setValue in class ObjectKeykey - the key valuepublic void setValue(DateKey key)
key - the key valuepublic java.util.Date getDate()
Date valuepublic boolean equals(java.lang.Object keyObj)
equals in class java.lang.ObjectkeyObj - the comparison value
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 | |||||||||