Module storm.java

Record Class ColumnImpl

java.lang.Object
java.lang.Record
st.orm.template.impl.ColumnImpl
Record Components:
core - the underlying column.
index - the 1-based index of the column.
name - the name of the column.
type - the Java type of the column.
primaryKey - whether the column is a primary key.
generation - the generation strategy.
sequence - the sequence name.
foreignKey - whether the column is a foreign key.
nullable - whether the column is nullable.
insertable - whether the column is insertable.
updatable - whether the column is updatable.
version - whether the column is a version column.
ref - whether the column is a lazily fetched record.
metamodel - the metamodel for the column.
All Implemented Interfaces:
Column

public record ColumnImpl(st.orm.core.template.Column core, int index, String name, Class<?> type, boolean primaryKey, GenerationStrategy generation, String sequence, boolean foreignKey, boolean nullable, boolean insertable, boolean updatable, boolean version, boolean ref, Metamodel<Data,?> metamodel) extends Record implements Column
Represents a column in a database table.
  • Constructor Details

    • ColumnImpl

      public ColumnImpl(st.orm.core.template.Column column)
    • ColumnImpl

      public ColumnImpl(st.orm.core.template.Column core, int index, String name, Class<?> type, boolean primaryKey, GenerationStrategy generation, String sequence, boolean foreignKey, boolean nullable, boolean insertable, boolean updatable, boolean version, boolean ref, Metamodel<Data,?> metamodel)
      Creates an instance of a ColumnImpl record class.
      Parameters:
      core - the value for the core record component
      index - the value for the index record component
      name - the value for the name record component
      type - the value for the type record component
      primaryKey - the value for the primaryKey record component
      generation - the value for the generation record component
      sequence - the value for the sequence record component
      foreignKey - the value for the foreignKey record component
      nullable - the value for the nullable record component
      insertable - the value for the insertable record component
      updatable - the value for the updatable record component
      version - the value for the version record component
      ref - the value for the ref record component
      metamodel - the value for the metamodel record component
  • 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 '=='.
      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.
    • core

      public st.orm.core.template.Column core()
      Returns the value of the core record component.
      Returns:
      the value of the core record component
    • index

      public int index()
      Returns the value of the index record component.
      Specified by:
      index in interface Column
      Returns:
      the value of the index record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Column
      Returns:
      the value of the name record component
    • type

      public Class<?> type()
      Returns the value of the type record component.
      Specified by:
      type in interface Column
      Returns:
      the value of the type record component
    • primaryKey

      public boolean primaryKey()
      Returns the value of the primaryKey record component.
      Specified by:
      primaryKey in interface Column
      Returns:
      the value of the primaryKey record component
    • generation

      public GenerationStrategy generation()
      Returns the value of the generation record component.
      Specified by:
      generation in interface Column
      Returns:
      the value of the generation record component
    • sequence

      public String sequence()
      Returns the value of the sequence record component.
      Specified by:
      sequence in interface Column
      Returns:
      the value of the sequence record component
    • foreignKey

      public boolean foreignKey()
      Returns the value of the foreignKey record component.
      Specified by:
      foreignKey in interface Column
      Returns:
      the value of the foreignKey record component
    • nullable

      public boolean nullable()
      Returns the value of the nullable record component.
      Specified by:
      nullable in interface Column
      Returns:
      the value of the nullable record component
    • insertable

      public boolean insertable()
      Returns the value of the insertable record component.
      Specified by:
      insertable in interface Column
      Returns:
      the value of the insertable record component
    • updatable

      public boolean updatable()
      Returns the value of the updatable record component.
      Specified by:
      updatable in interface Column
      Returns:
      the value of the updatable record component
    • version

      public boolean version()
      Returns the value of the version record component.
      Specified by:
      version in interface Column
      Returns:
      the value of the version record component
    • ref

      public boolean ref()
      Returns the value of the ref record component.
      Specified by:
      ref in interface Column
      Returns:
      the value of the ref record component
    • metamodel

      public Metamodel<Data,?> metamodel()
      Returns the value of the metamodel record component.
      Specified by:
      metamodel in interface Column
      Returns:
      the value of the metamodel record component