|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.platform.MetaDataColumnDescriptor
Describes a column in a metadata result set.
Constructor Summary | |
MetaDataColumnDescriptor(String columnName,
int jdbcType)
Creates a new descriptor instance. |
|
MetaDataColumnDescriptor(String columnName,
int jdbcType,
Object defaultValue)
Creates a new descriptor instance. |
Method Summary | |
Object |
getDefaultValue()
Returns the default value. |
int |
getJdbcType()
Returns the jdbc type to read from the result set. |
String |
getName()
Returns the name. |
Object |
readColumn(ResultSet resultSet)
Reads the column from the result set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaDataColumnDescriptor(String columnName, int jdbcType)
columnName
- The name of the columnjdbcType
- The jdbc type for reading from the result set, one of
VARCHAR, INTEGER, TINYINT, BITpublic MetaDataColumnDescriptor(String columnName, int jdbcType, Object defaultValue)
columnName
- The name of the columnjdbcType
- The jdbc type for reading from the result set, one of
VARCHAR, INTEGER, TINYINT, BITdefaultValue
- The default value if the column is not present in the result setMethod Detail |
public String getName()
public Object getDefaultValue()
public int getJdbcType()
public Object readColumn(ResultSet resultSet) throws SQLException
resultSet
- The result set
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |