Package helma.objectmodel.db
Class SyntheticKey
java.lang.Object
helma.objectmodel.db.SyntheticKey
- All Implemented Interfaces:
Key
,Serializable
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSyntheticKey
(Key key, String name) Make a symbolic key for an object using its parent key and its property name/id. -
Method Summary
-
Constructor Details
-
SyntheticKey
Make a symbolic key for an object using its parent key and its property name/id.- Parameters:
key
- the parent keyname
- the property or collection name
-
-
Method Details
-
equals
Returns true if this key equals obj -
hashCode
public int hashCode()Get the hash-code for this key -
getParentKey
Get the parent key part of this key- Specified by:
getParentKey
in interfaceKey
- Returns:
- the parent key
-
getID
Get the ID part of this key -
getStorageName
Get the storage name for this key. This alwys returns null for symbolic keys.- Specified by:
getStorageName
in interfaceKey
- Returns:
- null
-
toString
Return a string representation for this key
-