|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectKey
HydrateObject.getKey(java.lang.Class)
method.HydrateObject,
PrimaryKey| Nested Class Summary | |
|---|---|
static class |
ObjectKey.Complex
This partial implementation of the ObjectKey interface is used by objects that have an alternate key. |
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 |
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 |
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
m_log
|
| Method Summary | |
|---|---|
void |
constrainQuery(NamedParameterStatement stmt,
java.lang.String prmName)
Constrain a query according to the settings of this key. |
boolean |
equals(java.lang.Object o)
determine if two keys are equal. |
java.lang.String |
getKeyName()
|
int |
hashCode()
return a hashcode value for this key. |
void |
initObject(java.lang.Object obj)
If a key is used to read an existing object from the database, that object must be populated immediately with information from the 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. |
| Field Detail |
|---|
static final org.apache.commons.logging.Log m_log
| Method Detail |
|---|
boolean isPersisted()
void setNotPersisted()
boolean equals(java.lang.Object o)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Object
void constrainQuery(NamedParameterStatement stmt,
java.lang.String prmName)
throws SaveException
constrainQuery in interface ConstraintSaveExceptionvoid initObject(java.lang.Object obj)
obj - the object that has just been constructed and must be
populated with data. The type of the object should be known
to the fully implemented key.int intValue()
java.lang.String getKeyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||