Interface ObjectId
- All Superinterfaces:
Serializable
A portable global identifier for persistent objects. ObjectId can be temporary (used for transient or new uncommitted objects) or permanent (used for objects that have been already stored in DB).
A temporary ObjectId stores object entity name and a pseudo-unique binary key; permanent id stores a map of values from an external persistent store (aka "primary key").
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getKey()booleanbooleanstatic ObjectIdCreates a temporary ObjectId for a given entity.static ObjectIdCreates a temporary ObjectId for a given entity, using provided unique id key.static ObjectIdCreates a single key/value permanent ObjectId.static ObjectIdCreates an ObjectId, potentially mapped to multiple columns.static ObjectIdCreates an ObjectId using another id as a template, but for a different entity.