Class TemporalCollectionKey
java.lang.Object
org.hibernate.engine.spi.CollectionKey
org.hibernate.engine.spi.TemporalCollectionKey
- All Implemented Interfaces:
Serializable
A
CollectionKey for a temporal (historical) snapshot of a collection,
loaded from an audit table at a specific changeset identifier.
The changeset identifier is included in equals()/hashCode()
so that the persistence context naturally isolates collections at different
points in time.
- Since:
- 7.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalCollectionKey(CollectionPersister persister, Object key, Object changesetId) Construct a unique identifier for a temporal snapshot of a collection. -
Method Summary
Modifier and TypeMethodDescriptionThe audit changeset identifier for this key, ornullfor non-temporal collections.booleanWhether this key refers to a temporal (historical) collection snapshot.toString()Methods inherited from class CollectionKey
deserialize, equals, getKey, getRole, hashCode, serialize
-
Constructor Details
-
TemporalCollectionKey
Construct a unique identifier for a temporal snapshot of a collection.- Parameters:
persister- The collection persisterkey- The collection key (owner FK)changesetId- The changeset identifier (must not be null)
-
-
Method Details
-
getChangesetId
Description copied from class:CollectionKeyThe audit changeset identifier for this key, ornullfor non-temporal collections.- Overrides:
getChangesetIdin classCollectionKey
-
isTemporal
public boolean isTemporal()Description copied from class:CollectionKeyWhether this key refers to a temporal (historical) collection snapshot.- Overrides:
isTemporalin classCollectionKey
-
toString
- Overrides:
toStringin classCollectionKey
-