Record Class TemporalTableDdlRequest

java.lang.Object
java.lang.Record
org.hibernate.dialect.temporal.spi.TemporalTableDdlRequest
Record Components:
strategy - the selected temporal-table storage strategy
tableName - the rendered temporal table name
rowStartColumnName - the rendered row-start column name
rowEndColumnName - the rendered row-end column name
partitioned - whether current and historical rows are partitioned
currentPartitionName - the rendered current partition name
historyPartitionName - 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 Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • strategy

      public TemporalTableStrategy strategy()
      Returns the value of the strategy record component.
      Returns:
      the value of the strategy record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • rowStartColumnName

      public String rowStartColumnName()
      Returns the value of the rowStartColumnName record component.
      Returns:
      the value of the rowStartColumnName record component
    • rowEndColumnName

      public String rowEndColumnName()
      Returns the value of the rowEndColumnName record component.
      Returns:
      the value of the rowEndColumnName record component
    • partitioned

      public boolean partitioned()
      Returns the value of the partitioned record component.
      Returns:
      the value of the partitioned record component
    • currentPartitionName

      @Nullable public String currentPartitionName()
      Returns the value of the currentPartitionName record component.
      Returns:
      the value of the currentPartitionName record component
    • historyPartitionName

      @Nullable public String historyPartitionName()
      Returns the value of the historyPartitionName record component.
      Returns:
      the value of the historyPartitionName record component