Class ColumnInformation

java.lang.Object
org.mariadb.jdbc.internal.com.read.resultset.ColumnInformation
Direct Known Subclasses:
UpdatableColumnInformation

public class ColumnInformation extends Object
  • Field Details

    • maxCharlen

      private static final int[] maxCharlen
    • buffer

      private final Buffer buffer
    • charsetNumber

      private final short charsetNumber
    • length

      private final long length
    • type

      private final ColumnType type
    • decimals

      private final byte decimals
    • flags

      private final short flags
  • Constructor Details

    • ColumnInformation

      public ColumnInformation(ColumnInformation other)
      Constructor for extent.
      Parameters:
      other - other columnInformation
    • ColumnInformation

      public ColumnInformation(Buffer buffer)
      Read column information from buffer.
      Parameters:
      buffer - buffer
  • Method Details

    • create

      public static ColumnInformation create(String name, ColumnType type)
      Constructor.
      Parameters:
      name - column name
      type - column type
      Returns:
      ColumnInformation
    • getString

      private String getString(int idx)
    • getDatabase

      public String getDatabase()
    • getTable

      public String getTable()
    • getOriginalTable

      public String getOriginalTable()
    • getName

      public String getName()
    • getOriginalName

      public String getOriginalName()
    • getCharsetNumber

      public short getCharsetNumber()
    • getLength

      public long getLength()
    • getPrecision

      public long getPrecision()
      Return metadata precision.
      Returns:
      precision
    • getDisplaySize

      public int getDisplaySize()
      Get column size.
      Returns:
      size
    • getDecimals

      public byte getDecimals()
    • getColumnType

      public ColumnType getColumnType()
    • getFlags

      public short getFlags()
    • isSigned

      public boolean isSigned()
    • isNotNull

      public boolean isNotNull()
    • isPrimaryKey

      public boolean isPrimaryKey()
    • isUniqueKey

      public boolean isUniqueKey()
    • isMultipleKey

      public boolean isMultipleKey()
    • isBlob

      public boolean isBlob()
    • isZeroFill

      public boolean isZeroFill()
    • isBinary

      public boolean isBinary()