Klasse DateKey

Alle implementierten Schnittstellen:
Serializable, Comparable<Object>

public class DateKey extends SimpleKey<Date>
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:
  • Konstruktordetails

    • DateKey

      public DateKey()
      Initializes the internal key value to null.
    • DateKey

      public DateKey(String key)
      Creates an DateKey and set its internal representation
      Parameter:
      key - the key value as String
    • DateKey

      public DateKey(Date key)
      Creates an DateKey and set its internal representation
      Parameter:
      key - the key value
    • DateKey

      public DateKey(DateKey key)
      Creates a DateKey that is equivalent to key.
      Parameter:
      key - the key value
  • Methodendetails

    • setValue

      public void setValue(String key)
      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 in java.sql.Types.
      Angegeben von:
      getJdbcType in Klasse ObjectKey<Date>
      Gibt zurück:
      Types.TIMESTAMP.
    • toString

      public String toString()
      Get a String representation for this key.
      Setzt außer Kraft:
      toString in Klasse ObjectKey<Date>
      Gibt zurück:
      a String representation of the Date or an empty String if the Date is null