Record Class TemporalTableAuxiliaryObject
java.lang.Object
java.lang.Record
org.hibernate.dialect.temporal.spi.TemporalTableAuxiliaryObject
- Record Components:
exportIdentifier- the stable descriptor identifier within its scopescope- whether the descriptor is shared or belongs to one tablebeforeTables- whether creation precedes table creationcreateCommands- the ordered creation commandsdropCommands- the ordered drop commands
@SPI(USE)
public record TemporalTableAuxiliaryObject(String exportIdentifier, TemporalTableAuxiliaryObject.Scope scope, boolean beforeTables, List<String> createCommands, List<String> dropCommands)
extends Record
Declares ordered schema commands required by a temporal table strategy.
Database-scoped descriptors are deduplicated by export identifier. Table- scoped descriptors are isolated by table name plus export identifier. Command lists are immutable snapshots and at least one command is required.
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines whether an auxiliary object is shared by the database or belongs to one temporal table. -
Constructor Summary
ConstructorsConstructorDescriptionTemporalTableAuxiliaryObject(String exportIdentifier, TemporalTableAuxiliaryObject.Scope scope, boolean beforeTables, List<String> createCommands, List<String> dropCommands) Creates an instance of aTemporalTableAuxiliaryObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebeforeTablesrecord component.Returns the value of thecreateCommandsrecord component.Returns the value of thedropCommandsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportIdentifierrecord component.final inthashCode()Returns a hash code value for this object.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemporalTableAuxiliaryObject
public TemporalTableAuxiliaryObject(String exportIdentifier, TemporalTableAuxiliaryObject.Scope scope, boolean beforeTables, List<String> createCommands, List<String> dropCommands) Creates an instance of aTemporalTableAuxiliaryObjectrecord class.- Parameters:
exportIdentifier- the value for theexportIdentifierrecord componentscope- the value for thescoperecord componentbeforeTables- the value for thebeforeTablesrecord componentcreateCommands- the value for thecreateCommandsrecord componentdropCommands- the value for thedropCommandsrecord 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. -
exportIdentifier
Returns the value of theexportIdentifierrecord component.- Returns:
- the value of the
exportIdentifierrecord component
-
scope
-
beforeTables
public boolean beforeTables()Returns the value of thebeforeTablesrecord component.- Returns:
- the value of the
beforeTablesrecord component
-
createCommands
Returns the value of thecreateCommandsrecord component.- Returns:
- the value of the
createCommandsrecord component
-
dropCommands
Returns the value of thedropCommandsrecord component.- Returns:
- the value of the
dropCommandsrecord component
-