|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.workingdogs.village.Column
public class Column
This class represents a Column in the database and its associated meta information. A Record is a collection of columns.
Constructor Summary | |
---|---|
Column()
constructor |
Method Summary | |
---|---|
java.lang.String |
getTableName()
TODO: DOCUMENT ME! |
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 |
name()
the name of the column |
boolean |
nullAllowed()
does this column allow null? |
void |
populate(java.sql.ResultSetMetaData rsmd,
int colNum,
java.lang.String tableName,
java.lang.String columnName)
internal package method for populating a Column instance |
void |
populate(java.lang.String tableName,
java.lang.String columnName,
java.lang.String columnTypeName,
int columnType,
boolean isNullable)
internal package method for populating a Column instance |
boolean |
readOnly()
is this column read only? |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Column()
Method Detail |
---|
public void populate(java.sql.ResultSetMetaData rsmd, int colNum, java.lang.String tableName, java.lang.String columnName) throws java.sql.SQLException
rsmd
- TODO: DOCUMENT ME!colNum
- TODO: DOCUMENT ME!tableName
- TODO: DOCUMENT ME!columnName
- The name of the column
java.sql.SQLException
- TODO: DOCUMENT ME!public void populate(java.lang.String tableName, java.lang.String columnName, java.lang.String columnTypeName, int columnType, boolean isNullable)
tableName
- The name of the tablecolumnName
- The name of the columncolumnTypeName
- The Data source dependent type namecolumnType
- The SQL type from java.sql.TypesisNullable
- true if NULL allowed.public java.lang.String name()
public int typeEnum()
public boolean nullAllowed()
public boolean readOnly()
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 getTableName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |