|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.workingdogs.village.Column
This class represents a Column in the database and its associated meta information. A Record is a collection of columns.
Field Summary | |
private boolean |
autoIncrement
is this an auto increment column? |
private int |
columnNumber
column number in a schema object |
private int |
columnType
what java.sql.Type is this column? |
private java.lang.String |
columnTypeName
example: this column is of type "String" |
private int |
length
what is the length of this column? |
private java.lang.String |
name
name of the column |
private boolean |
nullAllowed
is null allowed for this column? |
private int |
precision
what is the precision of this column? |
private boolean |
readOnly
is this a read only column? |
private int |
scale
what is the scale of this column? |
private boolean |
searchable
is this a searchable column? |
private java.lang.String |
tableName
name of table that this column belongs to |
private java.lang.String |
type
the column type resolved internally |
Constructor Summary | |
Column()
constructor |
Method Summary | |
boolean |
autoIncrement()
does this column auto increment? |
java.lang.String |
dbKonaMethod()
unknown use |
java.lang.String |
dbType()
the data type of a column |
java.lang.String |
getTableName()
|
boolean |
isBigDecimal()
column isBigDecimal: 2 || 3 |
boolean |
isBinary()
column isBinary: -2 |
boolean |
isBoolean()
column isBoolean: -7 |
boolean |
isByte()
column isByte: -6 |
boolean |
isBytes()
column isBytes: -4 || -3 || -2 |
boolean |
isDate()
column isBytes: 91 |
boolean |
isDouble()
column isDouble: 6 || 8 |
boolean |
isFloat()
column isFloat: 7 |
boolean |
isInt()
column isInt: 4 |
boolean |
isLong()
column isLong: -5 |
boolean |
isLongVarBinary()
column isLongVarBinary: -4 |
boolean |
isShort()
column isShort: 5 |
boolean |
isString()
column isString: -1 || -11 || 12 |
boolean |
isTime()
column isTime: 92 |
boolean |
isTimestamp()
column isTimestamp: 93 |
boolean |
isVarBinary()
column isVarBinary: -3 |
java.lang.String |
javaType()
unknown use |
int |
length()
the storage length of a column |
java.lang.String |
name()
the name of the column |
boolean |
nullAllowed()
does this column allow null? |
(package private) void |
populate(java.sql.ResultSetMetaData rsmd,
int colNum,
java.lang.String tableName)
internal package method for populating a Column instance |
int |
precision()
the precision of the column |
java.lang.String |
preparedStatemntBindMethod()
unknown use |
boolean |
readOnly()
is this column read only? |
java.lang.String |
resultSetMethod()
unknown use |
int |
scale()
the scale of the column |
boolean |
searchable()
is this column searchable? |
java.lang.String |
type()
the type of the column as a string |
int |
typeEnum()
the data type of a column |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int columnNumber
private java.lang.String name
private java.lang.String columnTypeName
private int columnType
private java.lang.String tableName
private boolean nullAllowed
private boolean autoIncrement
private boolean readOnly
private boolean searchable
private int scale
private int precision
private int length
private java.lang.String type
Constructor Detail |
public Column()
Method Detail |
void populate(java.sql.ResultSetMetaData rsmd, int colNum, java.lang.String tableName) throws java.sql.SQLException
public java.lang.String name()
public java.lang.String dbType()
public int typeEnum()
public boolean nullAllowed()
public boolean autoIncrement()
public boolean readOnly()
public boolean searchable()
public int scale()
public int precision()
public int length()
public java.lang.String type()
public boolean isBoolean()
public boolean isBigDecimal()
public boolean isBinary()
public boolean isByte()
public boolean isBytes()
public boolean isDate()
public boolean isDouble()
public boolean isFloat()
public boolean isInt()
public boolean isLong()
public boolean isShort()
public boolean isString()
public boolean isTime()
public boolean isTimestamp()
public boolean isVarBinary()
public boolean isLongVarBinary()
public java.lang.String dbKonaMethod() throws DataSetException
public java.lang.String javaType() throws DataSetException
public final java.lang.String preparedStatemntBindMethod() throws DataSetException
public final java.lang.String resultSetMethod() throws DataSetException
public java.lang.String getTableName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |