|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.objectmodel.db.DbKey
public final class DbKey
This is the internal representation of a database key. It is constructed from the logical table (type) name and the object's primary key within the table. Currently only single keys are supported.
Constructor Summary | |
---|---|
DbKey(DbMapping dbmap,
java.lang.String id)
make a key for a persistent Object, describing its datasource and id. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object what)
|
java.lang.String |
getID()
Get the key's ID part |
Key |
getParentKey()
Get the key's parent key |
java.lang.String |
getStorageName()
Get the key's storage id |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DbKey(DbMapping dbmap, java.lang.String id)
Method Detail |
---|
public boolean equals(java.lang.Object what)
equals
in class java.lang.Object
what
- the other key to be compared with this one
public int hashCode()
hashCode
in class java.lang.Object
public Key getParentKey()
Key
getParentKey
in interface Key
public java.lang.String getStorageName()
Key
getStorageName
in interface Key
public java.lang.String getID()
Key
getID
in interface Key
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |