| java.lang.Object com.mysql.jdbc.Field
Field | public class Field (Code) | | Field is a class used to describe fields in a ResultSet
author: Mark Matthews version: $Id: Field.java 6577 2007-09-07 16:12:04Z mmatthews $ |
Constructor Summary | |
| 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) | | Field(ConnectionImpl conn, byte[] buffer, int nameStart, int nameLength, int tableNameStart, int tableNameLength, int length, int mysqlType, short colFlag, int colDecimals) | | 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. |
Field | 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(Code) | | Constructor used when communicating with 4.1 and newer servers
|
Field | Field(ConnectionImpl conn, byte[] buffer, int nameStart, int nameLength, int tableNameStart, int tableNameLength, int length, int mysqlType, short colFlag, int colDecimals) throws SQLException(Code) | | Constructor used when communicating with pre 4.1 servers
|
Field | Field(String tableName, String columnName, int jdbcType, int length)(Code) | | Constructor used by DatabaseMetaData methods.
|
Field | Field(String tableName, String columnName, int charsetIndex, int jdbcType, int length)(Code) | | 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 Parameters: columnName - not used Parameters: charsetIndex - the MySQL collation/character set index Parameters: jdbcType - from java.sql.Types Parameters: length - length in characters or bytes (for BINARY data). |
getCharacterSet | public String getCharacterSet() throws SQLException(Code) | | Returns the character set (if known) for this field.
the character set |
getDecimals | int getDecimals()(Code) | | |
getLength | public long getLength()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
getMaxBytesPerCharacter | public synchronized int getMaxBytesPerCharacter() throws SQLException(Code) | | |
getMysqlType | public int getMysqlType()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
getPrecisionAdjustFactor | public int getPrecisionAdjustFactor()(Code) | | Returns amount of correction that should be applied to the precision
value.
Different versions of MySQL report different precision values.
the amount to adjust precision value by. |
getSQLType | public int getSQLType()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isAutoIncrement | public boolean isAutoIncrement()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isBinary | public boolean isBinary()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isBlob | public boolean isBlob()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isMultipleKey | public boolean isMultipleKey()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isNotNull | boolean isNotNull()(Code) | | |
isPrimaryKey | public boolean isPrimaryKey()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isReadOnly | boolean isReadOnly() throws SQLException(Code) | | Is this field _definitely_ not writable?
true if this field can not be written to in an INSERT/UPDATEstatement. |
isSingleBit | protected boolean isSingleBit()(Code) | | |
isUniqueKey | public boolean isUniqueKey()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isUnsigned | public boolean isUnsigned()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
isZeroFill | public boolean isZeroFill()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
setConnection | public void setConnection(ConnectionImpl conn)(Code) | | DOCUMENT ME!
Parameters: conn - DOCUMENT ME! |
setMysqlType | void setMysqlType(int type)(Code) | | |
setUseOldNameMetadata | protected void setUseOldNameMetadata(boolean useOldNameMetadata)(Code) | | |
|
|