Class ExecRowBuilder

java.lang.Object
org.apache.derby.iapi.sql.execute.ExecRowBuilder
All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat

public class ExecRowBuilder extends Object implements Formatable

A class used for storing information on how to build ExecRow instances. Typically created by the compiler and used during execution to produce and reset row templates.

This class must be Formatable so that it can be stored in the database as part of a stored prepared statement generated for trigger actions or metadata queries. The stored format does not need to be stable across different versions, since the stored prepared statements are discarded on upgrade and will never be read by other Derby versions than the one that originally wrote them.

See Also:
  • Field Details

    • indexable

      private boolean indexable
      If true, the row should be an ExecIndexRow.
    • template

      private Object[] template
      Array of templates used for creating NULL values to put in the row. The templates are either DataValueDescriptors or DataTypeDescriptors.
    • columns

      private int[] columns
      Array of 1-based column numbers for the columns to access.
    • count

      private int count
      The number of columns to set in the row.
    • maxColumnNumber

      private int maxColumnNumber
      The highest column number in the row.
  • Constructor Details

    • ExecRowBuilder

      public ExecRowBuilder(int size, boolean indexable)
      Create an instance that produces an ExecRow instance of the specified size.
      Parameters:
      size - the number of columns to initialize in the produced row
      indexable - true if the returned row should be an ExecIndexRow, false otherwise
    • ExecRowBuilder

      public ExecRowBuilder()
      Public no-arg constructor required by the Formatable interface. Should not be called directly.
  • Method Details