Class GenericResultDescription

java.lang.Object
org.apache.derby.impl.sql.GenericResultDescription
All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, ResultDescription

public final class GenericResultDescription extends Object implements ResultDescription, Formatable
GenericResultDescription: basic implementation of result description, used in conjunction with the other implementations in this package. This implementation of ResultDescription may be used by anyone.
See Also:
  • Field Details

    • columns

      private ResultColumnDescriptor[] columns
      This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.
    • statementType

      private String statementType
    • metaData

      private transient ResultSetMetaData metaData
      Saved JDBC ResultSetMetaData object.
      See Also:
    • columnNameMap

      private Map<String,Integer> columnNameMap
      A map which maps a column name to a column number. Entries only added when accessing columns with the name.
  • Constructor Details

    • GenericResultDescription

      public GenericResultDescription()
      Niladic constructor for Formatable
    • GenericResultDescription

      public GenericResultDescription(ResultColumnDescriptor[] columns, String statementType)
      Build a GenericResultDescription from columns and type
      Parameters:
      columns - an array of col descriptors
      statementType - the type
    • GenericResultDescription

      public GenericResultDescription(ResultDescription rd, int[] theCols)
      Build a GenericResultDescription
      Parameters:
      rd - the result description
      theCols - the columns to take from the input rd
  • Method Details