|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yajul.sql.ColumnMetaData
public class ColumnMetaData
Bean that encapsulates database column metadata.
User: jdavis
Date: Aug 4, 2003
Time: 6:05:02 PM
Constructor Summary | |
---|---|
ColumnMetaData(java.lang.String name,
java.lang.String tableName,
java.sql.ResultSet rs)
Creates column meta data from the column name, table name, and result set positioned at the proper column. |
Method Summary | |
---|---|
int |
getColumnSize()
Returns the column size. |
short |
getDataType()
Returns the column data type (see java.sql.Types). |
java.lang.String |
getDataTypeName()
Returns the name of the data type. |
java.lang.String |
getName()
Returns the name of the column. |
int |
getNullable()
Returns the nullalbe attribute of the column. |
java.lang.String |
getTableName()
Returns the table name that the column is in. |
boolean |
isIntType()
Returns true if the column is a type compatible with 'int'. |
static boolean |
isIntType(int dataType)
Returns true if the column is a type compatible with 'int'. |
boolean |
isStringType()
Returns true if the column is a type compatible with 'String'. |
static boolean |
isStringType(int dataType)
Returns true if the column is a type compatible with 'String'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnMetaData(java.lang.String name, java.lang.String tableName, java.sql.ResultSet rs) throws java.sql.SQLException
name
- The name of the column.tableName
- The name of the table the column is in.rs
- The result set containing the rest of the information.
java.sql.SQLException
- If there is a problem reading the
meta data result set.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getTableName()
public short getDataType()
Types
public java.lang.String getDataTypeName()
public int getColumnSize()
public int getNullable()
public boolean isIntType()
public boolean isStringType()
public static boolean isIntType(int dataType)
dataType
- The data type (see java.sql.Types)
Types
public static boolean isStringType(int dataType)
dataType
- The data type (see java.sql.Types)
Types
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |