Home » MySQL-JDBC-5.1.11 » com.mysql.jdbc » [javadoc | source]
com.mysql.jdbc
public class: Field [javadoc | source]
java.lang.Object
   com.mysql.jdbc.Field
Field is a class used to describe fields in a ResultSet
Constructor:
 Field(String tableName,
    String columnName,
    int jdbcType,
    int length) 
    Constructor used by DatabaseMetaData methods.
 Field(String tableName,
    String columnName,
    int charsetIndex,
    int jdbcType,
    int length) 
    Used by prepared statements to re-use result set data conversion methods when generating bound parmeter retrieval instance for statement interceptors.
    Parameters:
    tableName - not used
    columnName - not used
    charsetIndex - the MySQL collation/character set index
    jdbcType - from java.sql.Types
    length - length in characters or bytes (for BINARY data).
 Field(ConnectionImpl conn,
    byte[] buffer,
    int nameStart,
    int nameLength,
    int tableNameStart,
    int tableNameLength,
    int length,
    int mysqlType,
    short colFlag,
    int colDecimals) throws SQLException 
    Constructor used when communicating with pre 4.1 servers
 Field(ConnectionImpl conn,
    byte[] buffer,
    int databaseNameStart,
    int databaseNameLength,
    int tableNameStart,
    int tableNameLength,
    int originalTableNameStart,
    int originalTableNameLength,
    int nameStart,
    int nameLength,
    int originalColumnNameStart,
    int originalColumnNameLength,
    long length,
    int mysqlType,
    short colFlag,
    int colDecimals,
    int defaultValueStart,
    int defaultValueLength,
    int charsetIndex) throws SQLException 
    Constructor used when communicating with 4.1 and newer servers
Method from com.mysql.jdbc.Field Summary:
getCharacterSet,   getCollation,   getColumnLabel,   getDatabaseName,   getDecimals,   getFullName,   getFullOriginalName,   getLength,   getMaxBytesPerCharacter,   getMysqlType,   getName,   getNameNoAliases,   getOriginalName,   getOriginalTableName,   getPrecisionAdjustFactor,   getSQLType,   getTable,   getTableName,   getTableNameNoAliases,   isAutoIncrement,   isBinary,   isBlob,   isMultipleKey,   isNotNull,   isOpaqueBinary,   isPrimaryKey,   isReadOnly,   isSingleBit,   isUniqueKey,   isUnsigned,   isZeroFill,   setCharacterSet,   setConnection,   setMysqlType,   setUnsigned,   setUseOldNameMetadata,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.mysql.jdbc.Field Detail:
 public String getCharacterSet() throws SQLException 
    Returns the character set (if known) for this field.
 public synchronized String getCollation() throws SQLException 
 public String getColumnLabel() throws SQLException 
 public String getDatabaseName() throws SQLException 
    DOCUMENT ME!
 int getDecimals() 
 public String getFullName() throws SQLException 
    DOCUMENT ME!
 public String getFullOriginalName() throws SQLException 
    DOCUMENT ME!
 public long getLength() 
    DOCUMENT ME!
 public synchronized int getMaxBytesPerCharacter() throws SQLException 
 public int getMysqlType() 
    DOCUMENT ME!
 public String getName() throws SQLException 
    DOCUMENT ME!
 public String getNameNoAliases() throws SQLException 
 public String getOriginalName() throws SQLException 
    DOCUMENT ME!
 public String getOriginalTableName() throws SQLException 
    DOCUMENT ME!
 public int getPrecisionAdjustFactor() 
    Returns amount of correction that should be applied to the precision value. Different versions of MySQL report different precision values.
 public int getSQLType() 
    DOCUMENT ME!
 public String getTable() throws SQLException 
    DOCUMENT ME!
 public String getTableName() throws SQLException 
    DOCUMENT ME!
 public String getTableNameNoAliases() throws SQLException 
 public boolean isAutoIncrement() 
    DOCUMENT ME!
 public boolean isBinary() 
    DOCUMENT ME!
 public boolean isBlob() 
    DOCUMENT ME!
 public boolean isMultipleKey() 
    DOCUMENT ME!
 boolean isNotNull() 
 boolean isOpaqueBinary() throws SQLException 
 public boolean isPrimaryKey() 
    DOCUMENT ME!
 boolean isReadOnly() throws SQLException 
    Is this field _definitely_ not writable?
 protected boolean isSingleBit() 
 public boolean isUniqueKey() 
    DOCUMENT ME!
 public boolean isUnsigned() 
    DOCUMENT ME!
 public boolean isZeroFill() 
    DOCUMENT ME!
 public  void setCharacterSet(String javaEncodingName) throws SQLException 
 public  void setConnection(ConnectionImpl conn) 
    DOCUMENT ME!
  void setMysqlType(int type) 
 public  void setUnsigned() 
 protected  void setUseOldNameMetadata(boolean useOldNameMetadata) 
 public String toString()