Class PostgreSQLTemporalTableSupport
java.lang.Object
org.hibernate.dialect.temporal.DefaultTemporalTableSupport
org.hibernate.dialect.temporal.PostgreSQLTemporalTableSupport
- All Implemented Interfaces:
TemporalTableSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemporalTableAuxiliaryObjects(TemporalTableStrategy strategy, Table table, Database database, boolean partitioned, String currentPartition, String historyPartition) Register any auxiliary database objects required for the given temporary table and strategy.intThe column type to use for effectivity columns of temporal tables.getTemporalTableOptions(TemporalTableStrategy strategy, String rowEndColumnName, boolean partitioned, String currentPartitionName, String historyPartitionName) Table options to use for temporal tables, used to specify system versioning or table partitioning.booleanDo we support partitioning temporal tables in this dialect?Methods inherited from class DefaultTemporalTableSupport
createTemporalTableCheckConstraint, getAsOfOperator, getDefaultTemporalTableStrategy, getExtraTemporalTableDeclarations, getTemporalColumnPrecision, getTemporalExclusionColumnOption, supportsNativeTemporalTables, suppressesTemporalTablePrimaryKeys, useAsOfOperator, useTemporalRestriction
-
Constructor Details
-
PostgreSQLTemporalTableSupport
-
-
Method Details
-
supportsTemporalTablePartitioning
public boolean supportsTemporalTablePartitioning()Description copied from interface:TemporalTableSupportDo we support partitioning temporal tables in this dialect?- Specified by:
supportsTemporalTablePartitioningin interfaceTemporalTableSupport- Overrides:
supportsTemporalTablePartitioningin classDefaultTemporalTableSupport- See Also:
-
getTemporalTableOptions
public String getTemporalTableOptions(TemporalTableStrategy strategy, String rowEndColumnName, boolean partitioned, String currentPartitionName, String historyPartitionName) Description copied from interface:TemporalTableSupportTable options to use for temporal tables, used to specify system versioning or table partitioning.- Specified by:
getTemporalTableOptionsin interfaceTemporalTableSupport- Overrides:
getTemporalTableOptionsin classDefaultTemporalTableSupport- Parameters:
strategy- The temporal table strategyrowEndColumnName- The name of therow endcolumn specified viaTemporal.rowEnd()partitioned- Is partitioning requestedcurrentPartitionName- The current partition name, if specifiedhistoryPartitionName- The history partition name, if specified- Returns:
- The options, or
nullif there are no options
-
addTemporalTableAuxiliaryObjects
public void addTemporalTableAuxiliaryObjects(TemporalTableStrategy strategy, Table table, Database database, boolean partitioned, String currentPartition, String historyPartition) Description copied from interface:TemporalTableSupportRegister any auxiliary database objects required for the given temporary table and strategy. Used to create history tables or table partitions.- Specified by:
addTemporalTableAuxiliaryObjectsin interfaceTemporalTableSupport- Overrides:
addTemporalTableAuxiliaryObjectsin classDefaultTemporalTableSupport- Parameters:
strategy- The temporal table strategytable- A temporal tabledatabase- The database to register withpartitioned- Is partitioning requestedcurrentPartition- The current partition name, if specifiedhistoryPartition- The history partition name, if specified
-
getTemporalColumnType
public int getTemporalColumnType()Description copied from interface:TemporalTableSupportThe column type to use for effectivity columns of temporal tables. The default implementation returnsTIMESTAMP.- Specified by:
getTemporalColumnTypein interfaceTemporalTableSupport- Overrides:
getTemporalColumnTypein classDefaultTemporalTableSupport
-