|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hydrateframework.ObjectKey.Int
public abstract static class ObjectKey.Int
This partial implementation of the ObjectKey interface is used
by objects that have a primary key whose underlying type is an
int
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hydrateframework.ObjectKey |
|---|
ObjectKey.Complex, ObjectKey.Int, ObjectKey.Str |
| Field Summary | |
|---|---|
protected int |
m_val
The integer that holds the value of this key |
| Fields inherited from interface org.hydrateframework.ObjectKey |
|---|
m_log |
| Constructor Summary | |
|---|---|
ObjectKey.Int()
Construct key with a value set to null. |
|
ObjectKey.Int(int val)
|
|
ObjectKey.Int(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 int m_val
| Constructor Detail |
|---|
public ObjectKey.Int()
public ObjectKey.Int(java.lang.Object val)
intValue() method of the
given object if it a Numeric or
Integer.parseInt() on the result from
toString() if not.
public ObjectKey.Int(int val)
| 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 | |||||||||