Package org.apache.torque.om

# Klasse BooleanKey

java.lang.Object
org.apache.torque.om.ObjectKey<T>
org.apache.torque.om.SimpleKey<Boolean>
org.apache.torque.om.BooleanKey

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

public class BooleanKey extends SimpleKey<Boolean>
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a Boolean.

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

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `BooleanKey()`
  Initializes the internal key value to `null`.
  `BooleanKey(Boolean key)`
  Creates an BooleanKey and set its internal representation
  `BooleanKey(String key)`
  Creates an BooleanKey and set its internal representation
  `BooleanKey(BooleanKey key)`
  Creates a BooleanKey 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`.
  `void`
  `setValue(String key)`
  Sets the internal representation to a String.

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

  - ### BooleanKey

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

  - ### BooleanKey

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

  - ### BooleanKey

    public BooleanKey(Boolean key)
    Creates an BooleanKey and set its internal representation
    Parameter:
      `key` - the key value

  - ### BooleanKey

    public BooleanKey(BooleanKey key)
    Creates a BooleanKey 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<Boolean>`
    Gibt zurück:
      `Types.BIT`.