| |
|
| java.lang.Object org.apache.torque.om.ObjectKey org.apache.torque.om.SimpleKey org.apache.torque.om.StringKey
StringKey | public class StringKey extends SimpleKey (Code) | | 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.
author: John McNally version: $Id: StringKey.java 473821 2006-11-11 22:37:25Z tv $ |
Method Summary | |
public 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. | public String | getString() Access the underlying String object. | public void | setValue(String key) | public void | setValue(StringKey key) Sets the internal representation to the same object used by key. | public String | toString() |
StringKey | public StringKey()(Code) | | Creates an SimpleKey whose internal representation will be
set later, through a set method
|
StringKey | public StringKey(String key)(Code) | | Creates a StringKey whose internal representation is a String
Parameters: key - the key value |
StringKey | public StringKey(StringKey key)(Code) | | Creates a StringKey that is equivalent to key.
Parameters: key - the key value |
equals | public boolean equals(Object keyObj)(Code) | | keyObj is equal to this StringKey if keyObj is a StringKey or String
that contains the same information this key contains. Two ObjectKeys
that both contain null values are not considered equal.
Parameters: keyObj - the comparison value whether the two objects are equal |
getString | public String getString()(Code) | | Access the underlying String object.
a String value |
setValue | public void setValue(String key)(Code) | | Sets the internal representation to a String
Parameters: key - the key value |
setValue | public void setValue(StringKey key)(Code) | | Sets the internal representation to the same object used by key.
Parameters: key - the key value |
toString | public String toString()(Code) | | get a String representation
a String representation of an empty String if the value is null |
|
|
|