Interface TemporalTableSupport
- All Known Implementing Classes:
DelegatingTemporalTableSupport
Defines the database grammar and capabilities used for temporal table DDL and historical queries.
Implement this contract with immutable, thread-safe state. Use rendered
names from TemporalTableDdlRequest verbatim, return declarative auxiliary
commands instead of mutating boot metadata, and make restriction choices
only from the ephemeral TemporalRestrictionRequest.
- Since:
- 8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReport whether Hibernate should add its effectivity check constraint for the selected storage strategy.getAsOfOperator(TemporalTableStrategy strategy) Return the SQL operator placed before a historical instant expression.Return the concrete strategy selected when configuration requestsTemporalTableStrategy.AUTO.Render declarations placed inside the temporal table definition.intReturn the default fractional-second precision of temporal effectivity columns.intReturn theSqlTypescode used for temporal effectivity columns.Return the column option which excludes a column from native temporal versioning, ornullwhen no option is needed.Describe, in deterministic order, the schema commands required in addition to the temporal table itself.Render the trailing table options for the supplied table.booleanReport whether the database provides native system-versioned tables.booleanReport whether the strategy can partition current and historical rows.booleansuppressesTemporalTablePrimaryKeys(boolean partitioned) Report whether a partitioned temporal table must omit its primary key.booleanuseAsOfOperator(TemporalTableStrategy strategy) Report whether historical queries usegetAsOfOperator(TemporalTableStrategy)for the selected strategy.booleanReport whether current-data queries usegetAsOfOperator(TemporalTableStrategy)without an explicit historical instant.booleanDecide whether Hibernate should render effectivity-column restrictions from the supplied ephemeral query facts.
-
Method Details
-
supportsNativeTemporalTables
boolean supportsNativeTemporalTables()Report whether the database provides native system-versioned tables. -
getTemporalColumnType
int getTemporalColumnType()Return theSqlTypescode used for temporal effectivity columns. -
getTemporalColumnPrecision
int getTemporalColumnPrecision()Return the default fractional-second precision of temporal effectivity columns. -
getTemporalTableOptions
Render the trailing table options for the supplied table. Use every name in the request verbatim and returnnullwhen no options are needed. -
suppressesTemporalTablePrimaryKeys
boolean suppressesTemporalTablePrimaryKeys(boolean partitioned) Report whether a partitioned temporal table must omit its primary key. -
supportsTemporalTablePartitioning
boolean supportsTemporalTablePartitioning()Report whether the strategy can partition current and historical rows. -
getTemporalTableAuxiliaryObjects
List<TemporalTableAuxiliaryObject> getTemporalTableAuxiliaryObjects(TemporalTableDdlRequest request) Describe, in deterministic order, the schema commands required in addition to the temporal table itself. Return an immutable list and do not mutate boot metadata. -
getExtraTemporalTableDeclarations
Render declarations placed inside the temporal table definition. Use every request name verbatim and returnnullwhen none are needed. -
createTemporalTableCheckConstraint
Report whether Hibernate should add its effectivity check constraint for the selected storage strategy. -
getAsOfOperator
Return the SQL operator placed before a historical instant expression. -
useAsOfOperator
Report whether historical queries usegetAsOfOperator(TemporalTableStrategy)for the selected strategy. -
useAsOfOperatorForCurrent
Report whether current-data queries usegetAsOfOperator(TemporalTableStrategy)without an explicit historical instant. -
useTemporalRestriction
Decide whether Hibernate should render effectivity-column restrictions from the supplied ephemeral query facts. Do not retain the request. -
getTemporalExclusionColumnOption
-
getDefaultTemporalTableStrategy
TemporalTableStrategy getDefaultTemporalTableStrategy()Return the concrete strategy selected when configuration requestsTemporalTableStrategy.AUTO.
-