Class ColumnSnapshot

java.lang.Object
dev.frostlake.persistence.ColumnSnapshot
All Implemented Interfaces:
Serializable

public class ColumnSnapshot extends Object implements Serializable
Serializable snapshot of column metadata
See Also:
  • Field Details

    • name

      public String name
    • dataType

      public String dataType
    • precision

      public Integer precision
    • scale

      public Integer scale
    • maxLength

      public Integer maxLength
    • binaryFixed

      public Boolean binaryFixed
      Whether a BINARY column is the FIXED spelling. Both spellings report the type BINARY, so the name cannot carry it — and SHOW COLUMNS' fixed cell is the one place it shows. Null on snapshots written before it was persisted, where the NAME still held the spelling.
    • nullable

      public boolean nullable
    • primaryKey

      public boolean primaryKey
    • defaultValue

      public String defaultValue
    • defaultIsExpression

      public boolean defaultIsExpression
    • comment

      public String comment
    • maskingPolicyName

      public String maskingPolicyName
    • projectionPolicyName

      public String projectionPolicyName
    • unique

      public boolean unique
    • autoIncrement

      public boolean autoIncrement
    • identityStart

      public long identityStart
    • identityIncrement

      public long identityIncrement
    • collation

      public String collation
    • referencedTable

      public String referencedTable
    • referencedColumn

      public String referencedColumn
    • onDelete

      public String onDelete
    • onUpdate

      public String onUpdate
    • rely

      public Boolean rely
    • uniqueConstraintName

      public String uniqueConstraintName
    • foreignKeyConstraintName

      public String foreignKeyConstraintName
  • Constructor Details

    • ColumnSnapshot

      public ColumnSnapshot()