| java.lang.Object com.knowgate.dataobjs.DBColumn
DBColumn | final public class DBColumn (Code) | | Object representing metadata for a database table column.
author: Sergio Montoro Ten version: 3.0 |
Constructor Summary | |
public | DBColumn() | public | DBColumn(String sTable, String sColName, short iColType, String sColType, int iPrecision, int iDecDigits, int iNullable, int iColPos) |
DBColumn | public DBColumn()(Code) | | |
DBColumn | public DBColumn(String sTable, String sColName, short iColType, String sColType, int iPrecision, int iDecDigits, int iNullable, int iColPos)(Code) | | |
getDecimalDigits | public int getDecimalDigits()(Code) | | Decimal Digits |
getPosition | public int getPosition()(Code) | | Column Position (starting at column 1) |
getPrecision | public int getPrecision()(Code) | | Column Precision |
getSQLType | public static int getSQLType(String sToken)(Code) | | Get SQL type identifier from its name
Parameters: sToken - String String |
getSqlTypeName | public String getSqlTypeName()(Code) | | SQL Type Name |
getTableName | public String getTableName()(Code) | | Name of table containing this column |
isNullable | public boolean isNullable()(Code) | | Allows NULLs? |
setName | public void setName(String sColName)(Code) | | Set column name
Parameters: sColName - String |
setPosition | public void setPosition(int iPos)(Code) | | Set column position
Parameters: iPos - int |
setSqlType | public void setSqlType(short iType)(Code) | | Set SQL type for this column
Parameters: iType - short |
setSqlType | public void setSqlType(int iType)(Code) | | |
typeName | public static String typeName(int iSQLtype)(Code) | | Get SQL type name from its integer identifier
Parameters: iSQLtype - int String |
|
|