Record Class TemporalTableDdlRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.temporal.spi.TemporalTableDdlRequest
- Record Components:
strategy- the selected temporal-table storage strategytableName- the rendered temporal table namerowStartColumnName- the rendered row-start column namerowEndColumnName- the rendered row-end column namepartitioned- whether current and historical rows are partitionedcurrentPartitionName- the rendered current partition namehistoryPartitionName- the rendered history partition name
@SPI(USE)
public record TemporalTableDdlRequest(TemporalTableStrategy strategy, String tableName, String rowStartColumnName, String rowEndColumnName, boolean partitioned, @Nullable String currentPartitionName, @Nullable String historyPartitionName)
extends Record
Describes one temporal table using names already rendered for the active schema-export context.
Use every supplied name verbatim and do not quote it again. Partition names
are required only when partitioned() is true; otherwise they are
normalized to null.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalTableDdlRequest(TemporalTableStrategy strategy, String tableName, String rowStartColumnName, String rowEndColumnName, boolean partitioned, String currentPartitionName, String historyPartitionName) Creates an instance of aTemporalTableDdlRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentPartitionNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehistoryPartitionNamerecord component.booleanReturns the value of thepartitionedrecord component.Returns the value of therowEndColumnNamerecord component.Returns the value of therowStartColumnNamerecord component.strategy()Returns the value of thestrategyrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemporalTableDdlRequest
public TemporalTableDdlRequest(TemporalTableStrategy strategy, String tableName, String rowStartColumnName, String rowEndColumnName, boolean partitioned, @Nullable String currentPartitionName, @Nullable String historyPartitionName) Creates an instance of aTemporalTableDdlRequestrecord class.- Parameters:
strategy- the value for thestrategyrecord componenttableName- the value for thetableNamerecord componentrowStartColumnName- the value for therowStartColumnNamerecord componentrowEndColumnName- the value for therowEndColumnNamerecord componentpartitioned- the value for thepartitionedrecord componentcurrentPartitionName- the value for thecurrentPartitionNamerecord componenthistoryPartitionName- the value for thehistoryPartitionNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
strategy
-
tableName
-
rowStartColumnName
Returns the value of therowStartColumnNamerecord component.- Returns:
- the value of the
rowStartColumnNamerecord component
-
rowEndColumnName
Returns the value of therowEndColumnNamerecord component.- Returns:
- the value of the
rowEndColumnNamerecord component
-
partitioned
public boolean partitioned()Returns the value of thepartitionedrecord component.- Returns:
- the value of the
partitionedrecord component
-
currentPartitionName
Returns the value of thecurrentPartitionNamerecord component.- Returns:
- the value of the
currentPartitionNamerecord component
-
historyPartitionName
Returns the value of thehistoryPartitionNamerecord component.- Returns:
- the value of the
historyPartitionNamerecord component
-