Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class ValueRow

extends Object
implements ExecRow
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.Row
Known Direct Subclasses
org.apache.derby.impl.sql.execute.IndexRow
Imports
org.apache.derby.iapi.services.io.FormatableBitSet, org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.types.DataValueDescriptor

Basic implementation of ExecRow.

Field Summary

Modifier and TypeField and Description
private DataValueDescriptor[]
private int

Constructor Summary

AccessConstructor and Description
public
ValueRow(int
number of columns to allocate
ncols
)

Make a value row with a designated number of column slots.

Method Summary

Modifier and TypeMethod and Description
public final DataValueDescriptor
cloneColumn(int
(1 based)
columnPosition
)

Implements org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Get a clone of a DataValueDescriptor from an ExecRow.

pack-priv ExecRow
public ExecRow
getClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row and its contents.

public ExecRow
getClone(FormatableBitSet
1-based FormatableBitSet representing the columns to clone.
clonedCols
)

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row.

public DataValueDescriptor
getColumn(int
The ordinal position of the column.
position
)

Implements org.apache.derby.iapi.sql.Row.getColumn.

Get a DataValueDescriptor in a Row by ordinal position (1-based).

public ExecRow
getNewNullRow()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Get a new row with the same columns type as this one, containing nulls.

public void
public DataValueDescriptor[]
getRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArray.

Get the array form of the row that Access expects.

public DataValueDescriptor[]
getRowArrayClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArrayClone.

Get a clone of the array form of the row that Access expects.

public int
protected void
realloc(int ncols)

public void
resetRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.resetRowArray.

Reset all columns in the row array to null values.

public void
setColumn(int
The ordinal position of the column.
position
,
DataValueDescriptor
The column value to set
col
)

Implements org.apache.derby.iapi.sql.Row.setColumn.

Set a DataValueDescriptor in a Row by ordinal position (1-based).

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnback to summary
private DataValueDescriptor[] column
ncolsback to summary
private int ncols

Constructor Detail

ValueRowback to summary
public ValueRow(int ncols)

Make a value row with a designated number of column slots.

Parameters
ncols:int

number of columns to allocate

Method Detail

cloneColumnback to summary
public final DataValueDescriptor cloneColumn(int columnPosition)

Implements org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Get a clone of a DataValueDescriptor from an ExecRow.

Parameters
columnPosition:int

(1 based)

cloneMeback to summary
pack-priv ExecRow cloneMe()
getCloneback to summary
public ExecRow getClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row and its contents.

Returns:ExecRow

Row A clone of the Row and its contents.

getCloneback to summary
public ExecRow getClone(FormatableBitSet clonedCols)

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getClone.

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.

Parameters
clonedCols:FormatableBitSet

1-based FormatableBitSet representing the columns to clone.

Returns:ExecRow

Row A clone of the Row and its contents.

getColumnback to summary
public DataValueDescriptor getColumn(int position)

Implements org.apache.derby.iapi.sql.Row.getColumn.

Doc from org.apache.derby.iapi.sql.Row.getColumn.

Get a DataValueDescriptor in a Row by ordinal position (1-based).

Parameters
position:int

The ordinal position of the column.

Returns:DataValueDescriptor

The DataValueDescriptor, null if no such column exists

getNewNullRowback to summary
public ExecRow getNewNullRow()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Get a new row with the same columns type as this one, containing nulls.

getNewObjectArrayback to summary
public void getNewObjectArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewObjectArray.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getNewObjectArray.

Get a new DataValueDescriptor[]

getRowArrayback to summary
public DataValueDescriptor[] getRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArray.

Get the array form of the row that Access expects.

See Also
ExecRow#getRowArray
getRowArrayCloneback to summary
public DataValueDescriptor[] getRowArrayClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArrayClone.

Get a clone of the array form of the row that Access expects.

See Also
ExecRow#getRowArray
nColumnsback to summary
public int nColumns()

Implements org.apache.derby.iapi.sql.Row.nColumns.

reallocback to summary
protected void realloc(int ncols)
resetRowArrayback to summary
public void resetRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.resetRowArray.

Reset all columns in the row array to null values.

setColumnback to summary
public void setColumn(int position, DataValueDescriptor col)

Implements org.apache.derby.iapi.sql.Row.setColumn.

Doc from org.apache.derby.iapi.sql.Row.setColumn.

Set a DataValueDescriptor in a Row by ordinal position (1-based).

Parameters
position:int

The ordinal position of the column.

col:DataValueDescriptor

The column value to set

setRowArrayback to summary
public void setRowArray(DataValueDescriptor[] value)

Implements org.apache.derby.iapi.sql.execute.ExecRow.setRowArray.

Set the row array

See Also
ExecRow#setRowArray
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object