Class DB2TemporalTableSupport
java.lang.Object
org.hibernate.dialect.temporal.DefaultTemporalTableSupport
org.hibernate.dialect.temporal.DB2TemporalTableSupport
- All Implemented Interfaces:
TemporalTableSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemporalTableAuxiliaryObjects(TemporalTableStrategy strategy, Table table, Database database, boolean partitioned, String currentPartitionName, String historyPartitionName) Register any auxiliary database objects required for the given temporary table and strategy.The recommended temporal table strategy for this dialect.getExtraTemporalTableDeclarations(TemporalTableStrategy strategy, String rowStartColumn, String rowEndColumn, boolean partitioned) Any extra declarations required as part of thecreate tablestatement for a temporal table.intThe column precision to use for effectivity columns of native temporal tables when the precision is not explicitly specified.getTemporalTableOptions(TemporalTableStrategy strategy, String rowEndColumnName, boolean partitioned, String currentPartition, String historyPartition) Table options to use for temporal tables, used to specify system versioning or table partitioning.booleanDoes this dialect natively support SQL 2011-style temporal tables?booleanDo we support partitioning temporal tables in this dialect?
-
Constructor Details
-
DB2TemporalTableSupport
-
-
Method Details
-
getTemporalColumnPrecision
public int getTemporalColumnPrecision()Description copied from interface:TemporalTableSupportThe column precision to use for effectivity columns of native temporal tables when the precision is not explicitly specified. The default implementation returns the default timestamp precision for this dialect.- Specified by:
getTemporalColumnPrecisionin interfaceTemporalTableSupport- Overrides:
getTemporalColumnPrecisionin classDefaultTemporalTableSupport- See Also:
-
supportsNativeTemporalTables
public boolean supportsNativeTemporalTables()Description copied from interface:TemporalTableSupportDoes this dialect natively support SQL 2011-style temporal tables?- Specified by:
supportsNativeTemporalTablesin interfaceTemporalTableSupport- Overrides:
supportsNativeTemporalTablesin classDefaultTemporalTableSupport- See Also:
-
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:
-
getExtraTemporalTableDeclarations
public String getExtraTemporalTableDeclarations(TemporalTableStrategy strategy, String rowStartColumn, String rowEndColumn, boolean partitioned) Description copied from interface:TemporalTableSupportAny extra declarations required as part of thecreate tablestatement for a temporal table. These declarations, unlike the options come inside the parentheses, along with the column and constraint definitions. Examples include theperiod for system_timeclause, the Db2transaction start idcolumn, the MySQL partitioning column, and so on.- Specified by:
getExtraTemporalTableDeclarationsin interfaceTemporalTableSupport- Overrides:
getExtraTemporalTableDeclarationsin classDefaultTemporalTableSupport- Parameters:
strategy- The temporal table strategypartitioned- Is partitioning requested
-
getTemporalTableOptions
public String getTemporalTableOptions(TemporalTableStrategy strategy, String rowEndColumnName, boolean partitioned, String currentPartition, String historyPartition) 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 requestedcurrentPartition- The current partition name, if specifiedhistoryPartition- 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 currentPartitionName, String historyPartitionName) 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 requestedcurrentPartitionName- The current partition name, if specifiedhistoryPartitionName- The history partition name, if specified
-
getDefaultTemporalTableStrategy
Description copied from interface:TemporalTableSupportThe recommended temporal table strategy for this dialect.- Specified by:
getDefaultTemporalTableStrategyin interfaceTemporalTableSupport- Overrides:
getDefaultTemporalTableStrategyin classDefaultTemporalTableSupport- See Also:
-