Class MySQLTemporalTableSupport
java.lang.Object
org.hibernate.dialect.temporal.DefaultTemporalTableSupport
org.hibernate.dialect.temporal.MySQLTemporalTableSupport
- All Implemented Interfaces:
TemporalTableSupport
- Direct Known Subclasses:
MariaDBTemporalTableSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExtraTemporalTableDeclarations(TemporalTableStrategy strategy, String rowStartColumn, String rowEndColumn, boolean partitioned) Any extra declarations required as part of thecreate tablestatement for a temporal table.intThe column type to use for effectivity columns of temporal tables.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.booleanDo we support partitioning temporal tables in this dialect?Methods inherited from class DefaultTemporalTableSupport
addTemporalTableAuxiliaryObjects, createTemporalTableCheckConstraint, getAsOfOperator, getDefaultTemporalTableStrategy, getTemporalColumnPrecision, getTemporalExclusionColumnOption, supportsNativeTemporalTables, suppressesTemporalTablePrimaryKeys, useAsOfOperator, useTemporalRestriction
-
Constructor Details
-
MySQLTemporalTableSupport
-
-
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 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
-
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
-
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
-