Class ValueRow
java.lang.Object
org.apache.derby.impl.sql.execute.ValueRow
- Direct Known Subclasses:
IndexRow
Basic implementation of ExecRow.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValueRow
(int ncols) Make a value row with a designated number of column slots. -
Method Summary
Modifier and TypeMethodDescriptionfinal DataValueDescriptor
cloneColumn
(int columnPosition) Get a clone of a DataValueDescriptor from an ExecRow.(package private) ExecRow
cloneMe()
getClone()
Clone the Row and its contents.getClone
(FormatableBitSet clonedCols) Clone the Row.getColumn
(int position) Get a DataValueDescriptor in a Row by ordinal position (1-based).Get a new row with the same columns type as this one, containing nulls.void
Get a new DataValueDescriptor[]Get the array form of the row that Access expects.Get a clone of the array form of the row that Access expects.int
nColumns()
protected void
realloc
(int ncols) void
Reset all columns in the row array to null values.void
setColumn
(int position, DataValueDescriptor col) Set a DataValueDescriptor in a Row by ordinal position (1-based).void
setRowArray
(DataValueDescriptor[] value) Set the row arraytoString()
-
Field Details
-
column
-
ncols
private int ncols
-
-
Constructor Details
-
ValueRow
public ValueRow(int ncols) Make a value row with a designated number of column slots.- Parameters:
ncols
- number of columns to allocate
-
-
Method Details
-
nColumns
public int nColumns() -
getNewObjectArray
public void getNewObjectArray()Description copied from interface:ExecRow
Get a new DataValueDescriptor[]- Specified by:
getNewObjectArray
in interfaceExecRow
-
getColumn
Description copied from interface:Row
Get a DataValueDescriptor in a Row by ordinal position (1-based). -
setColumn
Description copied from interface:Row
Set a DataValueDescriptor in a Row by ordinal position (1-based). -
getClone
Description copied from interface:ExecRow
Clone the Row and its contents. -
getClone
Description copied from interface:ExecRow
Clone the Row. The cloned row will contain clones of the specified columns and the same object as the original row for the other columns. -
getNewNullRow
Description copied from interface:ExecRow
Get a new row with the same columns type as this one, containing nulls.- Specified by:
getNewNullRow
in interfaceExecRow
-
cloneMe
ExecRow cloneMe() -
resetRowArray
public void resetRowArray()Reset all columns in the row array to null values.- Specified by:
resetRowArray
in interfaceExecRow
-
cloneColumn
Description copied from interface:ExecRow
Get a clone of a DataValueDescriptor from an ExecRow.- Specified by:
cloneColumn
in interfaceExecRow
- Parameters:
columnPosition
- (1 based)
-
toString
-
getRowArray
Get the array form of the row that Access expects.- Specified by:
getRowArray
in interfaceExecRow
- See Also:
-
getRowArrayClone
Get a clone of the array form of the row that Access expects.- Specified by:
getRowArrayClone
in interfaceExecRow
- See Also:
-
setRowArray
Set the row array- Specified by:
setRowArray
in interfaceExecRow
- See Also:
-
realloc
protected void realloc(int ncols)
-