|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.om.ObjectKey
org.apache.torque.om.SimpleKey
org.apache.torque.om.BooleanKey
public class BooleanKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a Boolean.
Field Summary |
---|
Fields inherited from class org.apache.torque.om.ObjectKey |
---|
key |
Constructor Summary | |
---|---|
BooleanKey()
Creates an SimpleKey whose internal representation will be set later, through a set method |
|
BooleanKey(Boolean key)
Creates a BooleanKey whose internal representation is a Boolean |
|
BooleanKey(BooleanKey key)
Creates a BooleanKey that is equivalent to key. |
Method Summary | |
---|---|
Boolean |
getBoolean()
Access the underlying Boolean object. |
int |
getJdbcType()
Returns the JDBC type of the key as defined in java.sql.Types . |
void |
setValue(Boolean key)
Sets the internal representation to a Boolean. |
void |
setValue(BooleanKey key)
Sets the internal representation to the same object used by key. |
void |
setValue(String key)
Sets the internal representation to a String. |
String |
toString()
Get a String representation of this key. |
Methods inherited from class org.apache.torque.om.SimpleKey |
---|
keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor |
Methods inherited from class org.apache.torque.om.ObjectKey |
---|
appendTo, compareTo, equals, getValue, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanKey()
public BooleanKey(Boolean key)
key
- the key valuepublic BooleanKey(BooleanKey key)
key
- the key valueMethod Detail |
---|
public void setValue(String key)
setValue
in class ObjectKey
key
- the key valuepublic void setValue(Boolean key)
key
- the key valuepublic void setValue(BooleanKey key)
key
- the key valuepublic Boolean getBoolean()
Boolean
valuepublic int getJdbcType()
java.sql.Types
.
getJdbcType
in class ObjectKey
Types.BIT
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |