|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.Field
public class Field
Field is a class used to describe fields in a ResultSet
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)
Constructor used when communicating with 4.1 and newer servers |
|
Field(ConnectionImpl conn,
byte[] buffer,
int nameStart,
int nameLength,
int tableNameStart,
int tableNameLength,
int length,
int mysqlType,
short colFlag,
int colDecimals)
Constructor used when communicating with pre 4.1 servers |
|
Field(java.lang.String tableName,
java.lang.String columnName,
int jdbcType,
int length)
Constructor used by DatabaseMetaData methods. |
|
Field(java.lang.String tableName,
java.lang.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. |
Method Summary | |
---|---|
java.lang.String |
getCharacterSet()
Returns the character set (if known) for this field. |
java.lang.String |
getCollation()
|
java.lang.String |
getColumnLabel()
|
java.lang.String |
getDatabaseName()
DOCUMENT ME! |
(package private) int |
getDecimals()
|
java.lang.String |
getFullName()
DOCUMENT ME! |
java.lang.String |
getFullOriginalName()
DOCUMENT ME! |
long |
getLength()
DOCUMENT ME! |
int |
getMaxBytesPerCharacter()
|
int |
getMysqlType()
DOCUMENT ME! |
java.lang.String |
getName()
DOCUMENT ME! |
java.lang.String |
getNameNoAliases()
|
java.lang.String |
getOriginalName()
DOCUMENT ME! |
java.lang.String |
getOriginalTableName()
DOCUMENT ME! |
int |
getPrecisionAdjustFactor()
Returns amount of correction that should be applied to the precision value. |
int |
getSQLType()
DOCUMENT ME! |
java.lang.String |
getTable()
DOCUMENT ME! |
java.lang.String |
getTableName()
DOCUMENT ME! |
java.lang.String |
getTableNameNoAliases()
|
boolean |
isAutoIncrement()
DOCUMENT ME! |
boolean |
isBinary()
DOCUMENT ME! |
boolean |
isBlob()
DOCUMENT ME! |
boolean |
isMultipleKey()
DOCUMENT ME! |
(package private) boolean |
isNotNull()
|
(package private) boolean |
isOpaqueBinary()
|
boolean |
isPrimaryKey()
DOCUMENT ME! |
(package private) boolean |
isReadOnly()
Is this field _definitely_ not writable? |
protected boolean |
isSingleBit()
|
boolean |
isUniqueKey()
DOCUMENT ME! |
boolean |
isUnsigned()
DOCUMENT ME! |
boolean |
isZeroFill()
DOCUMENT ME! |
void |
setCharacterSet(java.lang.String javaEncodingName)
|
void |
setConnection(ConnectionImpl conn)
DOCUMENT ME! |
(package private) void |
setMysqlType(int type)
|
void |
setUnsigned()
|
protected void |
setUseOldNameMetadata(boolean useOldNameMetadata)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 java.sql.SQLException
java.sql.SQLException
Field(ConnectionImpl conn, byte[] buffer, int nameStart, int nameLength, int tableNameStart, int tableNameLength, int length, int mysqlType, short colFlag, int colDecimals) throws java.sql.SQLException
java.sql.SQLException
Field(java.lang.String tableName, java.lang.String columnName, int jdbcType, int length)
Field(java.lang.String tableName, java.lang.String columnName, int charsetIndex, int jdbcType, int length)
tableName
- not usedcolumnName
- not usedcharsetIndex
- the MySQL collation/character set indexjdbcType
- from java.sql.Typeslength
- length in characters or bytes (for BINARY data).Method Detail |
---|
public java.lang.String getCharacterSet() throws java.sql.SQLException
java.sql.SQLException
public void setCharacterSet(java.lang.String javaEncodingName) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getCollation() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getColumnLabel() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getDatabaseName() throws java.sql.SQLException
java.sql.SQLException
int getDecimals()
public java.lang.String getFullName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getFullOriginalName() throws java.sql.SQLException
java.sql.SQLException
public long getLength()
public int getMaxBytesPerCharacter() throws java.sql.SQLException
java.sql.SQLException
public int getMysqlType()
public java.lang.String getName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getNameNoAliases() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getOriginalName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getOriginalTableName() throws java.sql.SQLException
java.sql.SQLException
public int getPrecisionAdjustFactor()
public int getSQLType()
public java.lang.String getTable() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getTableName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getTableNameNoAliases() throws java.sql.SQLException
java.sql.SQLException
public boolean isAutoIncrement()
public boolean isBinary()
public boolean isBlob()
public boolean isMultipleKey()
boolean isNotNull()
boolean isOpaqueBinary() throws java.sql.SQLException
java.sql.SQLException
public boolean isPrimaryKey()
boolean isReadOnly() throws java.sql.SQLException
java.sql.SQLException
public boolean isUniqueKey()
public boolean isUnsigned()
public void setUnsigned()
public boolean isZeroFill()
public void setConnection(ConnectionImpl conn)
conn
- DOCUMENT ME!void setMysqlType(int type)
protected void setUseOldNameMetadata(boolean useOldNameMetadata)
public java.lang.String toString()
toString
in class java.lang.Object
protected boolean isSingleBit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |