Record Class TemporalRestrictionRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.temporal.spi.TemporalRestrictionRequest
- Record Components:
strategy- the configured temporal-table storage strategytemporalIdentifierPresent- whether the query selects a historical instantinstantChangesetIdentifier- whether changeset identifiers represent instants
@SPI(USE)
public record TemporalRestrictionRequest(TemporalTableStrategy strategy, boolean temporalIdentifierPresent, boolean instantChangesetIdentifier)
extends Record
Provides the ephemeral query facts needed to choose temporal column restrictions without exposing query-engine state.
Do not retain this request after
TemporalTableSupport.useTemporalRestriction(TemporalRestrictionRequest).
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalRestrictionRequest(TemporalTableStrategy strategy, boolean temporalIdentifierPresent, boolean instantChangesetIdentifier) Creates an instance of aTemporalRestrictionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinstantChangesetIdentifierrecord component.strategy()Returns the value of thestrategyrecord component.booleanReturns the value of thetemporalIdentifierPresentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemporalRestrictionRequest
public TemporalRestrictionRequest(TemporalTableStrategy strategy, boolean temporalIdentifierPresent, boolean instantChangesetIdentifier) Creates an instance of aTemporalRestrictionRequestrecord class.- Parameters:
strategy- the value for thestrategyrecord componenttemporalIdentifierPresent- the value for thetemporalIdentifierPresentrecord componentinstantChangesetIdentifier- the value for theinstantChangesetIdentifierrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
strategy
-
temporalIdentifierPresent
public boolean temporalIdentifierPresent()Returns the value of thetemporalIdentifierPresentrecord component.- Returns:
- the value of the
temporalIdentifierPresentrecord component
-
instantChangesetIdentifier
public boolean instantChangesetIdentifier()Returns the value of theinstantChangesetIdentifierrecord component.- Returns:
- the value of the
instantChangesetIdentifierrecord component
-