Class Field

java.lang.Object
com.mysql.cj.result.Field
All Implemented Interfaces:
ProtocolEntity

public class Field
extends java.lang.Object
implements ProtocolEntity
Field is a class used to describe fields in a ResultSet
  • Constructor Details

    • Field

      public Field​(LazyString databaseName, LazyString tableName, LazyString originalTableName, LazyString columnName, LazyString originalColumnName, long length, int mysqlTypeId, short colFlag, int colDecimals, int collationIndex, java.lang.String encoding, MysqlType mysqlType)
    • Field

      public Field​(java.lang.String tableName, java.lang.String columnName, int collationIndex, java.lang.String encoding, MysqlType mysqlType, int length)
      Used by prepared statements to re-use result set data conversion methods when generating bound parameter retrieval instance for statement interceptors.
      Parameters:
      tableName - not used
      columnName - not used
      collationIndex - the MySQL collation/character set index
      encoding - encoding of data in this field
      mysqlType - MysqlType
      length - length in characters or bytes (for BINARY data).
  • Method Details