public class MetaDataColumnDescriptor extends Object
| Constructor and Description |
|---|
MetaDataColumnDescriptor(String columnName,
int jdbcType)
Creates a new descriptor instance.
|
MetaDataColumnDescriptor(String columnName,
int jdbcType,
Object defaultValue)
Creates a new descriptor instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 setpublic String getName()
public Object getDefaultValue()
public int getJdbcType()
public Object readColumn(ResultSet resultSet) throws SQLException
resultSet - The result setSQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.