Class MariaDBTemporalTableSupport
java.lang.Object
org.hibernate.dialect.temporal.DefaultTemporalTableSupport
org.hibernate.dialect.temporal.MySQLTemporalTableSupport
org.hibernate.dialect.temporal.MariaDBTemporalTableSupport
- All Implemented Interfaces:
TemporalTableSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe 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 type to use for effectivity columns of temporal tables.Column options for a native implementation of exclusion from temporal versioning.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.booleanDoes this dialect natively support SQL 2011-style temporal tables?booleanDo we support partitioning temporal tables in this dialect?
-
Constructor Details
-
MariaDBTemporalTableSupport
-
-
Method Details
-
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 classMySQLTemporalTableSupport- 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 classMySQLTemporalTableSupport- 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
-
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 classMySQLTemporalTableSupport- 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 classMySQLTemporalTableSupport
-
getTemporalExclusionColumnOption
Description copied from interface:TemporalTableSupportColumn options for a native implementation of exclusion from temporal versioning.- Specified by:
getTemporalExclusionColumnOptionin interfaceTemporalTableSupport- Overrides:
getTemporalExclusionColumnOptionin classDefaultTemporalTableSupport
-
getDefaultTemporalTableStrategy
Description copied from interface:TemporalTableSupportThe recommended temporal table strategy for this dialect.- Specified by:
getDefaultTemporalTableStrategyin interfaceTemporalTableSupport- Overrides:
getDefaultTemporalTableStrategyin classDefaultTemporalTableSupport- See Also:
-