Class ColumnDefinition

  • Direct Known Subclasses:
    UpdatableColumnDefinition

    public class ColumnDefinition
    extends Object
    Protocol details : https://mariadb.com/kb/en/resultset/#column-definition-packet
    • Constructor Detail

      • ColumnDefinition

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

        public ColumnDefinition​(Buffer buffer)
        Read column information from buffer.
        Parameters:
        buffer - buffer
    • Method Detail

      • create

        public static ColumnDefinition create​(String name,
                                              ColumnType type)
        Constructor.
        Parameters:
        name - column name
        type - column type
        Returns:
        ColumnInformation
      • 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()