org.apache.torque.om
Class SimpleKey

java.lang.Object
  extended byorg.apache.torque.om.ObjectKey
      extended byorg.apache.torque.om.SimpleKey
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
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,v 1.4.2.1 2003/05/27 19:35:02 mpoeschl Exp $
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 © 1999-2003 Apache Software Foundation. All Rights Reserved.