|
||||||||||
| 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(java.lang.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(java.lang.Object keyObj)
keyObj is equal to this StringKey if keyObj is a StringKey or String that contains the same information this key contains. |
java.lang.String |
getString()
Access the underlying String object. |
void |
setValue(java.lang.String key)
Sets the internal representation to a String |
void |
setValue(StringKey key)
Sets the internal representation to the same object used by key. |
java.lang.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(java.lang.String key)
key - the key valuepublic StringKey(StringKey key)
key - the key value| Method Detail |
|---|
public void setValue(java.lang.String key)
setValue in class ObjectKeykey - the key valuepublic void setValue(StringKey key)
key - the key valuepublic java.lang.String getString()
String valuepublic boolean equals(java.lang.Object keyObj)
equals in class java.lang.ObjectkeyObj - the comparison value
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||