Package org.apache.torque.om

# Klasse StringKey

java.lang.Object
org.apache.torque.om.ObjectKey<T>
org.apache.torque.om.SimpleKey<String>
org.apache.torque.om.StringKey

Alle implementierten Schnittstellen:
  `Serializable`, `Comparable<Object>`

public class StringKey extends SimpleKey<String>
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a single entity such a GUID or the value of a db row's primary key.

Version:
  $Id: StringKey.java 1849379 2018-12-20 12:33:43Z tv $
Autor:
  John McNally
Siehe auch:
  - Serialisierte Form

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `StringKey()`
  Initializes the internal key value to `null`.
  `StringKey(String key)`
  Creates an StringKey and set its internal representation
  `StringKey(StringKey key)`
  Creates a StringKey that is equivalent to key.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `int`
  `getJdbcType()`
  Returns the JDBC type of the key as defined in `java.sql.Types`.

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

  `keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor`

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

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

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

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

- ## Konstruktordetails

  - ### StringKey

    public StringKey()
    Initializes the internal key value to `null`.

  - ### StringKey

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

  - ### StringKey

    public StringKey(StringKey key)
    Creates a StringKey that is equivalent to key.
    Parameter:
      `key` - the key value

- ## Methodendetails

  - ### getJdbcType

    public int getJdbcType()
    Returns the JDBC type of the key as defined in `java.sql.Types`.
    Angegeben von:
      `getJdbcType` in Klasse `ObjectKey<String>`
    Gibt zurück:
      `Types.VARCHAR`.