Class MetaDataColumnDescriptor
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.MetaDataColumnDescriptor
Describes a column in a metadata result set.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorDescriptionMetaDataColumnDescriptor
(String columnName, int jdbcType) Creates a new descriptor instance.MetaDataColumnDescriptor
(String columnName, int jdbcType, Object defaultValue) Creates a new descriptor instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value.int
Returns the jdbc type to read from the result set.getName()
Returns the name.readColumn
(ResultSet resultSet) Reads the column from the result set.
-
Constructor Details
-
MetaDataColumnDescriptor
Creates a new descriptor instance.- Parameters:
columnName
- The name of the columnjdbcType
- The jdbc type for reading from the result set, one of VARCHAR, INTEGER, TINYINT, BIT
-
MetaDataColumnDescriptor
Creates a new descriptor instance.- Parameters:
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 set
-
-
Method Details
-
getName
Returns the name.- Returns:
- The name
-
getDefaultValue
Returns the default value.- Returns:
- The default value
-
getJdbcType
public int getJdbcType()Returns the jdbc type to read from the result set.- Returns:
- The jdbc type
-
readColumn
Reads the column from the result set.- Parameters:
resultSet
- The result set- Returns:
- The column value or the default value if the column is not present in the result set
- Throws:
SQLException
-