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.
| Modifier and Type | Field and Description |
|---|---|
| private int[] | columns
Array of 1-based column numbers for the columns to access. |
| private int | count
The number of columns to set in the row. |
| private boolean | indexable
If true, the row should be an |
| private int | maxColumnNumber
The highest column number in the row. |
| private Object[] | template
Array of templates used for creating NULL values to put in the row. |
| Access | Constructor and Description |
|---|---|
| public | ExecRowBuilder(int
the number of columns to initialize in the produced row size, boolean true if the returned row should be an
ExecIndexRow, false otherwiseCreate an instance that produces an |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ExecRow | Returns: a row initialized with NULL values of the requested typesan execution factory used to create a row ef)Build a new |
| public int | getTypeFormatId()
Implements org. Get a universally unique identifier for the type of this object. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | |
| public void | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| columns | back to summary |
|---|---|
| private int[] columns Array of 1-based column numbers for the columns to access. | |
| count | back to summary |
|---|---|
| private int count The number of columns to set in the row. | |
| indexable | back to summary |
|---|---|
| private boolean indexable If true, the row should be an | |
| maxColumnNumber | back to summary |
|---|---|
| private int maxColumnNumber The highest column number in the row. | |
| template | back to summary |
|---|---|
| private Object[] template Array of templates used for creating NULL values to put in the row.
The templates are either | |
| ExecRowBuilder | back to summary |
|---|---|
| public ExecRowBuilder(int size, boolean indexable) Create an instance that produces an
| |
| ExecRowBuilder | back to summary |
|---|---|
| public ExecRowBuilder() Public no-arg constructor required by the | |
| build | back to summary |
|---|---|
| public ExecRow build(ExecutionFactory ef) throws StandardException Build a new
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Doc from org. Get a universally unique identifier for the type of this object.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reset | back to summary |
|---|---|
| public void reset(ExecRow row) throws StandardException Reset a row by creating fresh NULL values.
| |
| setColumn | back to summary |
|---|---|
| public void setColumn(int column, Object columnTemplate) Add a template from which a NULL value of the correct type can be
created. It should either be a
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |