Package org.apache.torque.om
Klasse DateKey
- Alle implementierten Schnittstellen:
Serializable
,Comparable<Object>
This class can be used as an ObjectKey to uniquely identify an
object within an application where the id is a Date.
- Version:
- $Id: DateKey.java 1849379 2018-12-20 12:33:43Z tv $
- Autor:
- John McNally
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Returns the JDBC type of the key as defined injava.sql.Types
.void
Sets the internal representation to a StringtoString()
Get a String representation for this key.Von Klasse geerbte Methoden org.apache.torque.om.SimpleKey
keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor
-
Konstruktordetails
-
DateKey
public DateKey()Initializes the internal key value tonull
. -
DateKey
Creates an DateKey and set its internal representation- Parameter:
key
- the key value as String
-
DateKey
Creates an DateKey and set its internal representation- Parameter:
key
- the key value
-
DateKey
Creates a DateKey that is equivalent to key.- Parameter:
key
- the key value
-
-
Methodendetails
-
setValue
Sets the internal representation to a String- Parameter:
key
- the key value
-
getJdbcType
public int getJdbcType()Returns the JDBC type of the key as defined injava.sql.Types
.- Angegeben von:
getJdbcType
in KlasseObjectKey<Date>
- Gibt zurück:
Types.TIMESTAMP
.
-
toString
Get a String representation for this key.
-