Class SimpleKey<T>

java.lang.Object
org.apache.torque.om.ObjectKey<T>
org.apache.torque.om.SimpleKey<T>
All Implemented Interfaces:
Serializable, Comparable<Object>
Direct Known Subclasses:
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 $
Author:
John McNally, J. Russell Smyth
See Also:
  • Constructor Details

    • SimpleKey

      public SimpleKey()
  • Method Details

    • keyFor

      public static NumberKey keyFor(BigDecimal key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(int key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(long key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(double key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(Number key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static NumberKey keyFor(NumberKey key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static StringKey keyFor(String key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static StringKey keyFor(StringKey key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static DateKey keyFor(Date key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static DateKey keyFor(DateKey key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.
    • keyFor

      public static BooleanKey keyFor(Boolean key)
      Creates an ObjectKey for the key object.
      Parameters:
      key - the key value.
      Returns:
      an ObjectKey for key.