|
||||||||||
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.StringKey
public class StringKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a single entity such a GUID or the value of a db row's primary key.
Field Summary |
---|
Fields inherited from class org.apache.torque.om.ObjectKey |
---|
key |
Constructor Summary | |
---|---|
StringKey()
Creates an SimpleKey whose internal representation will be set later, through a set method |
|
StringKey(String key)
Creates a StringKey whose internal representation is a String |
|
StringKey(StringKey key)
Creates a StringKey that is equivalent to key. |
Method Summary | |
---|---|
boolean |
equals(Object keyObj)
keyObj is equal to this StringKey if keyObj is a StringKey or String that contains the same information this key contains. |
String |
getString()
Access the underlying String object. |
void |
setValue(String key)
Sets the internal representation to a String |
void |
setValue(StringKey key)
Sets the internal representation to the same object used by key. |
String |
toString()
get a String representation |
Methods inherited from class org.apache.torque.om.SimpleKey |
---|
keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor, keyFor |
Methods inherited from class org.apache.torque.om.ObjectKey |
---|
appendTo, compareTo, getValue, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringKey()
public StringKey(String key)
key
- the key valuepublic StringKey(StringKey key)
key
- the key valueMethod Detail |
---|
public void setValue(String key)
setValue
in class ObjectKey
key
- the key valuepublic void setValue(StringKey key)
key
- the key valuepublic String getString()
String
valuepublic boolean equals(Object keyObj)
equals
in class Object
keyObj
- the comparison value
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |