org.apache.torque.om
Class SimpleKey

java.lang.Object
  extended by org.apache.torque.om.ObjectKey
      extended by org.apache.torque.om.SimpleKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
DateKey, NumberKey, StringKey

public abstract class SimpleKey
extends ObjectKey

This empty class marks an ObjectKey as being capable of being represented as a single column in a database.

Version:
$Id: SimpleKey.java 473821 2006-11-11 22:37:25Z tv $
Author:
John McNally, J. Russell Smyth
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.torque.om.ObjectKey
key
 
Constructor Summary
SimpleKey()
           
 
Method Summary
static SimpleKey keyFor(java.math.BigDecimal key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(java.util.Date key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(DateKey key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(double key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(int key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(long key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(java.lang.Number key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(NumberKey key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(java.lang.String key)
          Creates a SimpleKey equivalent to key
static SimpleKey keyFor(StringKey key)
          Creates a SimpleKey equivalent to key
 
Methods inherited from class org.apache.torque.om.ObjectKey
appendTo, compareTo, getValue, hashCode, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleKey

public SimpleKey()
Method Detail

keyFor

public static SimpleKey keyFor(java.math.BigDecimal key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(int key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(long key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(double key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(java.lang.Number key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(NumberKey key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(java.lang.String key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(StringKey key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(java.util.Date key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey

keyFor

public static SimpleKey keyFor(DateKey key)
Creates a SimpleKey equivalent to key

Parameters:
key - the key value
Returns:
a SimpleKey


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.