|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.platform.MetaDataColumnDescriptor
public class MetaDataColumnDescriptor
Describes a column in a metadata result set.
Constructor Summary | |
---|---|
MetaDataColumnDescriptor(java.lang.String columnName,
int jdbcType)
Creates a new descriptor instance. |
|
MetaDataColumnDescriptor(java.lang.String columnName,
int jdbcType,
java.lang.Object defaultValue)
Creates a new descriptor instance. |
Method Summary | |
---|---|
java.lang.Object |
getDefaultValue()
Returns the default value. |
int |
getJdbcType()
Returns the jdbc type to read from the result set. |
java.lang.String |
getName()
Returns the name. |
java.lang.Object |
readColumn(java.sql.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(java.lang.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(java.lang.String columnName, int jdbcType, java.lang.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 java.lang.String getName()
public java.lang.Object getDefaultValue()
public int getJdbcType()
public java.lang.Object readColumn(java.sql.ResultSet resultSet) throws java.sql.SQLException
resultSet
- The result set
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |