Klasse SimpleKey<T>

java.lang.Object
org.apache.torque.om.ObjectKey<T>
org.apache.torque.om.SimpleKey<T>
Alle implementierten Schnittstellen:
Serializable, Comparable<Object>
Bekannte direkte Unterklassen:
BooleanKey, DateKey, NumberKey, StringKey

public abstract class SimpleKey<T> extends ObjectKey<T>
This empty class marks an ObjectKey as being capable of being represented as a single column in a database.
Version:
$Id: SimpleKey.java 1849379 2018-12-20 12:33:43Z tv $
Autor:
John McNally, J. Russell Smyth
Siehe auch:
  • Konstruktordetails

    • SimpleKey

      public SimpleKey()
  • Methodendetails

    • keyFor

      public static NumberKey keyFor(BigDecimal key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(int key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(long key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(double key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(Number key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(NumberKey key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static StringKey keyFor(String key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static StringKey keyFor(StringKey key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static DateKey keyFor(Date key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static DateKey keyFor(DateKey key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.
    • keyFor

      public static BooleanKey keyFor(Boolean key)
      Creates an ObjectKey for the key object.
      Parameter:
      key - the key value.
      Gibt zurück:
      an ObjectKey for key.