|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.sql.execute.ExecRowBuilder
public class ExecRowBuilder
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.
| Field Summary | |
|---|---|
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 ExecIndexRow. |
private int |
maxColumnNumber
The highest column number in the row. |
private static long |
serialVersionUID
Serial version produced by the serialver utility. |
private java.lang.Object[] |
template
Array of templates used for creating NULL values to put in the row. |
| Constructor Summary | |
|---|---|
ExecRowBuilder(int size,
boolean indexable)
Create an instance that produces an ExecRow instance of
the specified size. |
|
| Method Summary | |
|---|---|
ExecRow |
build(ExecutionFactory ef)
Build a new ExecRow instance with the columns specified by
the setColumn(int, Object) method initialized to empty (NULL)
values. |
void |
reset(ExecRow row)
Reset a row by creating fresh NULL values. |
void |
setColumn(int column,
java.lang.Object columnTemplate)
Add a template from which a NULL value of the correct type can be created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final boolean indexable
ExecIndexRow.
private final java.lang.Object[] template
DataValueDescriptors or
DataTypeDescriptors.
private final int[] columns
private int count
private int maxColumnNumber
| Constructor Detail |
|---|
public ExecRowBuilder(int size,
boolean indexable)
ExecRow instance of
the specified size.
size - the number of columns to initialize in the produced rowindexable - true if the returned row should be an
ExecIndexRow, false otherwise| Method Detail |
|---|
public void setColumn(int column,
java.lang.Object columnTemplate)
DataValueDescriptor or a
DataTypeDescriptor.
column - the column numbercolumnTemplate - a template from which a NULL value can be created
(either a DataValueDescriptor or a DataTypeDescriptor)
public ExecRow build(ExecutionFactory ef)
throws StandardException
ExecRow instance with the columns specified by
the setColumn(int, Object) method initialized to empty (NULL)
values.
ef - an execution factory used to create a row
StandardException
public void reset(ExecRow row)
throws StandardException
row - the row to reset
StandardException
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||