public class RowInfo extends Object
vsValues
contains on input the suggested values to update the VirtualSpace
row with. The row processor can modify this array's Value
's
to it's liking.
The VirtualSpace arrays vsValues
and vsValueTypes
are of the same size, i.e. the amount of columns in the VSTable.
The SQL arrays are of same sizes, i.e. the amount of
ResultSetColumnProp
's in the ResultSetProps
.
It can happen that the VirtualSpace arrays have different lengths
and ordering that the SQL arrays due to differences in their connections
to each other. Values that are null
i.e. unset after
a call to
will cause the VirtualSpace table row to get default values for new
rows, and keep the old values when overwriting the table.IResultSetRowProcessor.processRow(RowInfo)
Modifier and Type | Field and Description |
---|---|
ResultSet |
resultSet
The SQL ResultSet instance.
|
ResultSetProps |
resultSetProps
The result set properties for the transaction.
|
int[] |
sqlColumnIndicies
The SQL column indicies are one-based values, 1=first column, etc.
|
Object[] |
sqlValues
The SQL row values in their native form.
|
VSTable |
table
The VSTable connected to the result set.
|
int[] |
vsColumnIndicies
The indicies of the VirtualSpace column of the row.
|
Value[] |
vsValues
The row values.
|
Value.Type[] |
vsValueTypes
The VirtualSpace Value types for the row.
|
Constructor and Description |
---|
RowInfo(ResultSetProps resultSetProps,
VSTable table,
ResultSet resultSet,
int[] vsColumnIndicies,
Value.Type[] vsValueTypes,
int[] sqlColumnIndicies,
Object[] sqlValues,
Value[] vsValues)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(int[] vsColumnIndicies,
Value.Type[] vsValueTypes,
int[] sqlColumnIndicies,
Object[] sqlValues,
Value[] vsValues)
Initializes this same instance for re-use to avoid garbage collection.
|
public final VSTable table
public final ResultSet resultSet
public final ResultSetProps resultSetProps
public final int[] vsColumnIndicies
-1
indicates that the result set column property is not
connected to a VS column. This array contains zero-based indicies.
Changes done to this array will not affect anything.
public final Value.Type[] vsValueTypes
null
.
Changes done to this array will not affect anything.
public final int[] sqlColumnIndicies
Changes to this array does not affect anything.
public final Object[] sqlValues
Changes done to this array will not affect anything.
public final Value[] vsValues
public RowInfo(ResultSetProps resultSetProps, VSTable table, ResultSet resultSet, int[] vsColumnIndicies, Value.Type[] vsValueTypes, int[] sqlColumnIndicies, Object[] sqlValues, Value[] vsValues)
resultSetProps
- The result set propertiestable
- The table.resultSet
- The JDBC result set.vsColumnIndicies
- The VS column indicies.vsValueTypes
- The VS value types.sqlColumnIndicies
- The indicies of the JDBC table columns.sqlValues
- The values retrieved from a row in the table for the columns.vsValues
- The converted VS values from the JDBC values.public void initialize(int[] vsColumnIndicies, Value.Type[] vsValueTypes, int[] sqlColumnIndicies, Object[] sqlValues, Value[] vsValues)
vsColumnIndicies
- The VS column indicies.vsValueTypes
- The VS value types.sqlColumnIndicies
- The indicies of the JDBC table columns.sqlValues
- The values retrieved from a row in the table for the columns.vsValues
- The converted VS values from the JDBC values.iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.