java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.MetaDataColumnDescriptor

public class MetaDataColumnDescriptor extends Object
Describes a column in a metadata result set.
Version:
$Revision: $
  • Constructor Details

    • MetaDataColumnDescriptor

      public MetaDataColumnDescriptor(String columnName, int jdbcType)
      Creates a new descriptor instance.
      Parameters:
      columnName - The name of the column
      jdbcType - The jdbc type for reading from the result set, one of VARCHAR, INTEGER, TINYINT, BIT
    • MetaDataColumnDescriptor

      public MetaDataColumnDescriptor(String columnName, int jdbcType, Object defaultValue)
      Creates a new descriptor instance.
      Parameters:
      columnName - The name of the column
      jdbcType - The jdbc type for reading from the result set, one of VARCHAR, INTEGER, TINYINT, BIT
      defaultValue - The default value if the column is not present in the result set
  • Method Details

    • getName

      public String getName()
      Returns the name.
      Returns:
      The name
    • getDefaultValue

      public Object 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

      public Object readColumn(ResultSet resultSet) throws SQLException
      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