Package org.apache.torque.om
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberKeykeyFor(double key) Creates an ObjectKey for the key object.static NumberKeykeyFor(int key) Creates an ObjectKey for the key object.static NumberKeykeyFor(long key) Creates an ObjectKey for the key object.static BooleanKeyCreates an ObjectKey for the key object.static NumberKeyCreates an ObjectKey for the key object.static StringKeyCreates an ObjectKey for the key object.static NumberKeykeyFor(BigDecimal key) Creates an ObjectKey for the key object.static DateKeyCreates an ObjectKey for the key object.static DateKeyCreates an ObjectKey for the key object.static NumberKeyCreates an ObjectKey for the key object.static StringKeyCreates an ObjectKey for the key object.
-
Constructor Details
-
SimpleKey
public SimpleKey()
-
-
Method Details
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-
keyFor
Creates an ObjectKey for the key object.- Parameters:
key- the key value.- Returns:
- an ObjectKey for
key.
-