public class Field extends Object implements ProtocolEntity
| Modifier and Type | Field and Description |
|---|---|
private int |
colDecimals |
private short |
colFlag |
private int |
collationIndex |
private LazyString |
columnName |
private LazyString |
databaseName |
private String |
encoding |
private String |
fullName |
private long |
length |
private MysqlType |
mysqlType |
private int |
mysqlTypeId |
private LazyString |
originalColumnName |
private LazyString |
originalTableName |
private LazyString |
tableName |
| Constructor and Description |
|---|
Field(LazyString databaseName,
LazyString tableName,
LazyString originalTableName,
LazyString columnName,
LazyString originalColumnName,
long length,
int mysqlTypeId,
short colFlag,
int colDecimals,
int collationIndex,
String encoding,
MysqlType mysqlType) |
Field(String tableName,
String columnName,
int collationIndex,
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.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
adjustFlagsByMysqlType() |
int |
getCollationIndex() |
String |
getColumnLabel() |
String |
getDatabaseName() |
int |
getDecimals() |
String |
getEncoding()
Returns the Java encoding for this field.
|
short |
getFlags() |
String |
getFullName() |
int |
getJavaType() |
long |
getLength() |
MysqlType |
getMysqlType() |
int |
getMysqlTypeId() |
String |
getName() |
String |
getOriginalName() |
String |
getOriginalTableName() |
String |
getTableName() |
boolean |
getValueNeedsQuoting() |
boolean |
isAutoIncrement() |
boolean |
isBinary() |
boolean |
isBlob() |
boolean |
isFromFunction() |
boolean |
isMultipleKey() |
boolean |
isNotNull() |
boolean |
isPrimaryKey() |
boolean |
isReadOnly()
Is this field _definitely_ not writable?
|
boolean |
isSingleBit() |
boolean |
isUniqueKey() |
boolean |
isUnsigned() |
boolean |
isZeroFill() |
void |
setBinary() |
void |
setBlob() |
void |
setFlags(short colFlag) |
void |
setMysqlType(MysqlType mysqlType) |
void |
setMysqlTypeId(int id) |
String |
toString() |
private int collationIndex
private String encoding
private int colDecimals
private short colFlag
private LazyString databaseName
private LazyString tableName
private LazyString originalTableName
private LazyString columnName
private LazyString originalColumnName
private String fullName
private long length
private int mysqlTypeId
private MysqlType mysqlType
public Field(LazyString databaseName, LazyString tableName, LazyString originalTableName, LazyString columnName, LazyString originalColumnName, long length, int mysqlTypeId, short colFlag, int colDecimals, int collationIndex, String encoding, MysqlType mysqlType)
public Field(String tableName, String columnName, int collationIndex, String encoding, MysqlType mysqlType, int length)
tableName - not usedcolumnName - not usedcollationIndex - the MySQL collation/character set indexencoding - encoding of data in this fieldmysqlType - MysqlTypelength - length in characters or bytes (for BINARY data).private void adjustFlagsByMysqlType()
public String getEncoding()
public String getColumnLabel()
public String getDatabaseName()
public int getDecimals()
public String getFullName()
public long getLength()
public int getMysqlTypeId()
public void setMysqlTypeId(int id)
public String getName()
public String getOriginalName()
public String getOriginalTableName()
public int getJavaType()
public String getTableName()
public boolean isAutoIncrement()
public boolean isBinary()
public void setBinary()
public boolean isBlob()
public void setBlob()
public boolean isMultipleKey()
public boolean isNotNull()
public boolean isPrimaryKey()
public boolean isFromFunction()
public boolean isReadOnly()
public boolean isUniqueKey()
public boolean isUnsigned()
public boolean isZeroFill()
public boolean isSingleBit()
public boolean getValueNeedsQuoting()
public int getCollationIndex()
public MysqlType getMysqlType()
public void setMysqlType(MysqlType mysqlType)
public short getFlags()
public void setFlags(short colFlag)