|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.objectmodel.db.MultiKey
public final class MultiKey
This is the internal representation of a database key with multiple columns. It is constructed from the logical table (type) name and the column name/column value pairs that identify the key's object NOTE: This class doesn't fully support the Key interface - getID always returns null since there is no unique key (at least we don't know about it).
Constructor Summary | |
---|---|
MultiKey(DbMapping dbmap,
java.util.Map parts)
Make a key for a persistent Object, describing its datasource and key parts. |
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 MultiKey(DbMapping dbmap, java.util.Map parts)
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 |