|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hydrateframework.ObjectKey.Str
public abstract static class ObjectKey.Str
This partial implementation of the ObjectKey interface is used
by objects that have a primary key whose underlying type is a
String
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hydrateframework.ObjectKey |
|---|
ObjectKey.Complex, ObjectKey.Int, ObjectKey.Str |
| Field Summary | |
|---|---|
protected java.lang.String |
m_val
The string that holds the value of this key |
| Fields inherited from interface org.hydrateframework.ObjectKey |
|---|
m_log |
| Constructor Summary | |
|---|---|
ObjectKey.Str()
Construct key with a value set to null. |
|
ObjectKey.Str(java.lang.Object val)
Construct a new key with a value read from the given object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
determine if two keys are equal. |
int |
hashCode()
return a hashcode value for this key. |
int |
intValue()
Return an integer value that represents this key. |
boolean |
isPersisted()
Has the object associated with this key been persisted in the database |
void |
setNotPersisted()
Set object to indicate it is not persisted. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hydrateframework.ObjectKey |
|---|
constrainQuery, getKeyName, initObject |
| Field Detail |
|---|
protected java.lang.String m_val
| Constructor Detail |
|---|
public ObjectKey.Str()
public ObjectKey.Str(java.lang.Object val)
toString() method of the
given object to generate the key
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
ObjectKey
equals in interface ObjectKeyequals in class java.lang.Objectpublic int hashCode()
ObjectKey
hashCode in interface ObjectKeyhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int intValue()
ObjectKey
intValue in interface ObjectKeypublic boolean isPersisted()
ObjectKey
isPersisted in interface ObjectKeypublic void setNotPersisted()
ObjectKey
setNotPersisted in interface ObjectKey
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||