Package org.apache.torque.om

# 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:
  - Serialisierte Form

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `SimpleKey()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static NumberKey`
  `keyFor(double key)`
  Creates an ObjectKey for the key object.
  `static NumberKey`
  `keyFor(int key)`
  Creates an ObjectKey for the key object.
  `static NumberKey`
  `keyFor(long key)`
  Creates an ObjectKey for the key object.
  `static BooleanKey`
  `keyFor(Boolean key)`
  Creates an ObjectKey for the key object.
  `static NumberKey`
  `keyFor(Number key)`
  Creates an ObjectKey for the key object.
  `static StringKey`
  `keyFor(String key)`
  Creates an ObjectKey for the key object.
  `static NumberKey`
  `keyFor(BigDecimal key)`
  Creates an ObjectKey for the key object.
  `static DateKey`
  `keyFor(Date key)`
  Creates an ObjectKey for the key object.
  `static DateKey`
  `keyFor(DateKey key)`
  Creates an ObjectKey for the key object.
  `static NumberKey`
  `keyFor(NumberKey key)`
  Creates an ObjectKey for the key object.
  `static StringKey`
  `keyFor(StringKey key)`
  Creates an ObjectKey for the key object.

  ### Von Klasse geerbte Methoden org.apache.torque.om.ObjectKey

  `appendTo, compareTo, equals, getJdbcType, getValue, hashCode, setValue, setValue, toString`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 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`.