|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.objectmodel.db.SyntheticKey
public final class SyntheticKey
This is the internal key for an object that is not - or not directly - fetched from a db, but derived from another object. This is useful for all kinds of object accessed via a symbolic name from another object, like objects mounted via a property name column, virtual nodes and groupby nodes.
Constructor Summary | |
---|---|
SyntheticKey(Key key,
java.lang.String name)
Make a symbolic key for an object using its parent key and its property name/id. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this key equals obj |
java.lang.String |
getID()
Get the ID part of this key |
Key |
getParentKey()
Get the parent key part of this key |
java.lang.String |
getStorageName()
Get the storage name for this key. |
int |
hashCode()
Get the hash-code for this key |
java.lang.String |
toString()
Return a string representation for this key |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyntheticKey(Key key, java.lang.String name)
key
- the parent keyname
- the property or collection nameMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- another object
public int hashCode()
hashCode
in class java.lang.Object
public Key getParentKey()
getParentKey
in interface Key
public java.lang.String getID()
getID
in interface Key
public java.lang.String getStorageName()
getStorageName
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 |