org.apache.derby.impl.sql.execute
Class ValueRow

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.ValueRow
All Implemented Interfaces:
ExecRow, Row
Direct Known Subclasses:
IndexRow

public class ValueRow
extends java.lang.Object
implements ExecRow

Basic implementation of ExecRow.


Field Summary
private  DataValueDescriptor[] column
           
private  int ncols
           
 
Constructor Summary
ValueRow(int ncols)
          Make a value row with a designated number of column slots.
 
Method Summary
 DataValueDescriptor cloneColumn(int columnPosition)
          Get a clone of a DataValueDescriptor from an ExecRow.
(package private)  ExecRow cloneMe()
           
 ExecRow getClone()
          Clone the Row and its contents.
 ExecRow getClone(FormatableBitSet clonedCols)
          Clone the Row.
 DataValueDescriptor getColumn(int position)
          Get a DataValueDescriptor in a Row by ordinal position (1-based).
 ExecRow getNewNullRow()
          Get a new row with the same columns type as this one, containing nulls.
 void getNewObjectArray()
          Get a new DataValueDescriptor[]
 DataValueDescriptor[] getRowArray()
          Get the array form of the row that Access expects.
 DataValueDescriptor[] getRowArrayClone()
          Get a clone of the array form of the row that Access expects.
 int nColumns()
           
protected  void realloc(int ncols)
           
 void resetRowArray()
          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 array
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

column

private DataValueDescriptor[] column

ncols

private int ncols
Constructor Detail

ValueRow

public ValueRow(int ncols)
Make a value row with a designated number of column slots.

Parameters:
ncols - number of columns to allocate
Method Detail

nColumns

public int nColumns()
Specified by:
nColumns in interface Row

getNewObjectArray

public void getNewObjectArray()
Description copied from interface: ExecRow
Get a new DataValueDescriptor[]

Specified by:
getNewObjectArray in interface ExecRow

getColumn

public DataValueDescriptor getColumn(int position)
Description copied from interface: Row
Get a DataValueDescriptor in a Row by ordinal position (1-based).

Specified by:
getColumn in interface Row
Parameters:
position - The ordinal position of the column.
Returns:
The DataValueDescriptor, null if no such column exists

setColumn

public void setColumn(int position,
                      DataValueDescriptor col)
Description copied from interface: Row
Set a DataValueDescriptor in a Row by ordinal position (1-based).

Specified by:
setColumn in interface Row
Parameters:
position - The ordinal position of the column.

getClone

public ExecRow getClone()
Description copied from interface: ExecRow
Clone the Row and its contents.

Specified by:
getClone in interface ExecRow
Returns:
Row A clone of the Row and its contents.

getClone

public ExecRow getClone(FormatableBitSet clonedCols)
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.

Specified by:
getClone in interface ExecRow
Parameters:
clonedCols - 1-based FormatableBitSet representing the columns to clone.
Returns:
Row A clone of the Row and its contents.

getNewNullRow

public ExecRow getNewNullRow()
Description copied from interface: ExecRow
Get a new row with the same columns type as this one, containing nulls.

Specified by:
getNewNullRow in interface ExecRow

cloneMe

ExecRow cloneMe()

resetRowArray

public void resetRowArray()
Reset all columns in the row array to null values.

Specified by:
resetRowArray in interface ExecRow

cloneColumn

public final DataValueDescriptor cloneColumn(int columnPosition)
Description copied from interface: ExecRow
Get a clone of a DataValueDescriptor from an ExecRow.

Specified by:
cloneColumn in interface ExecRow
Parameters:
columnPosition - (1 based)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRowArray

public DataValueDescriptor[] getRowArray()
Get the array form of the row that Access expects.

Specified by:
getRowArray in interface ExecRow
See Also:
ExecRow.getRowArray()

getRowArrayClone

public DataValueDescriptor[] getRowArrayClone()
Get a clone of the array form of the row that Access expects.

Specified by:
getRowArrayClone in interface ExecRow
See Also:
ExecRow.getRowArray()

setRowArray

public void setRowArray(DataValueDescriptor[] value)
Set the row array

Specified by:
setRowArray in interface ExecRow
See Also:
ExecRow.setRowArray(org.apache.derby.iapi.types.DataValueDescriptor[])

realloc

protected void realloc(int ncols)

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.