|
||||||||||
| 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 | |
|---|---|
int |
getJdbcType()
Returns the JDBC type of the key as defined in java.sql.Types. |
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 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 StringKey()
public StringKey(String key)
key - the key valuepublic StringKey(StringKey key)
key - the key value| Method Detail |
|---|
public void setValue(String key)
setValue in class ObjectKeykey - the key valuepublic void setValue(StringKey key)
key - the key valuepublic String getString()
String valuepublic int getJdbcType()
java.sql.Types.
getJdbcType in class ObjectKeyTypes.VARCHAR.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||