Class ColumnInformation

    • Field Detail

      • maxCharlen

        private static final int[] maxCharlen
      • buffer

        private final Buffer buffer
      • charsetNumber

        private final short charsetNumber
      • length

        private final long length
      • decimals

        private final byte decimals
      • flags

        private final short flags
    • Constructor Detail

      • 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 Detail

      • create

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

        private java.lang.String getString​(int idx)
      • getDatabase

        public java.lang.String getDatabase()
      • getTable

        public java.lang.String getTable()
      • getOriginalTable

        public java.lang.String getOriginalTable()
      • getName

        public java.lang.String getName()
      • getOriginalName

        public java.lang.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()