|
||||||||||
| 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(Date key)
Creates a DateKey |
|
DateKey(DateKey key)
Creates a DateKey that is equivalent to key. |
|
DateKey(String key)
Creates a DateKey whose internal representation is a Date given by the long number given by the String |
|
| Method Summary | |
|---|---|
Date |
getDate()
Access the underlying Date object. |
int |
getJdbcType()
Returns the JDBC type of the key as defined in java.sql.Types. |
void |
setValue(DateKey key)
Sets the internal representation to the same object used by key. |
void |
setValue(String key)
Sets the internal representation to a String |
String |
toString()
Get a String representation for this key. |
| Methods inherited from class org.apache.torque.om.SimpleKey |
|---|
keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor |
| Methods inherited from class org.apache.torque.om.ObjectKey |
|---|
appendTo, compareTo, equals, getValue, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateKey()
public DateKey(String key)
key - the key value
NumberFormatException - if key is not validpublic DateKey(Date key)
key - the key valuepublic DateKey(DateKey key)
key - the key value| Method Detail |
|---|
public void setValue(String key)
setValue in class ObjectKeykey - the key valuepublic void setValue(DateKey key)
key - the key valuepublic int getJdbcType()
java.sql.Types.
getJdbcType in class ObjectKeyTypes.TIMESTAMP.public Date getDate()
Date valuepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||