public class ExecRowBuilder
extends java.lang.Object
implements java.io.Serializable
ExecRow
instances. Typically created by the compiler and used during execution
to produce and reset row templates.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
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 and Description |
---|
ExecRowBuilder(int size,
boolean indexable)
Create an instance that produces an
ExecRow instance of
the specified size. |
Modifier and Type | Method and Description |
---|---|
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.
|
private static final long serialVersionUID
private final boolean indexable
ExecIndexRow
.private final java.lang.Object[] template
DataValueDescriptor
s or
DataTypeDescriptor
s.private final int[] columns
private int count
private int maxColumnNumber
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
otherwisepublic 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 rowStandardException
public void reset(ExecRow row) throws StandardException
row
- the row to resetStandardException
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.