borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.dataset
DataRow class
java.lang.Object
+----borland.jbcl.dataset.ReadRow
+----borland.jbcl.dataset.ReadWriteRow
+----borland.jbcl.dataset.DataRow
About the DataRow class
Variables Constructors Properties Methods
A DataRow represents a single row of values across the Column components in a DataSet. It is used to hold a row's worth of data and is useful in operations involving comparisons of values it contains against those in a DataSet.
A DataRow must be created with the DataSet it is used with. If the structure of a DataSet changes, a new DataRow must be created for it.
When using a DataRow to locate data, all columns in the DataRow are included in the locate operation. To limit the locate to include only specified columns, use a "scoped" DataRow. A scoped DataRow includes only specified columns and is created using the DataRow(DataSet, String) or the DataRow(DataSet, String[]) contructor.
To write code that handles columns of any data type, use the setVariant(String, Variant) or the setVariant(int, Variant) method and the getVariant(String, Variant) or
getVariant(int, Variant) method.
For example, use these methods when writing code for locating data that is not data type dependent.
DataRow variables
DataRow constructors
DataRow properties
*Read-only properties **Write-only properties
DataRow methods
- clearValues()
- requiredColumnsCheck()
- setBigDecimal(int, java.math.BigDecimal)
- setBigDecimal(java.lang.String, java.math.BigDecimal)
- setBinaryStream(int, java.io.InputStream)
- setBinaryStream(java.lang.String, java.io.InputStream)
- setBoolean(int, boolean)
- setBoolean(java.lang.String, boolean)
- setByte(int, int)
- setByte(java.lang.String, int)
- setByteArray(int, byte[], int)
- setByteArray(java.lang.String, byte[], int)
- setDate(int, java.sql.Date)
- setDate(int, long)
- setDate(java.lang.String, java.sql.Date)
- setDate(java.lang.String, long)
- setDefaultValues()
- setDouble(int, double)
- setDouble(java.lang.String, double)
- setFloat(int, float)
- setFloat(java.lang.String, float)
- setInt(int, int)
- setInt(java.lang.String, int)
- setLong(int, long)
- setLong(java.lang.String, long)
- setShort(int, short)
- setShort(java.lang.String, short)
- setString(int, java.lang.String)
- setString(java.lang.String, java.lang.String)
- setTime(int, java.sql.Time)
- setTime(int, long)
- setTime(java.lang.String, java.sql.Time)
- setTime(java.lang.String, long)
- setTimestamp(int, java.sql.Timestamp)
- setTimestamp(int, long)
- setTimestamp(java.lang.String, java.sql.Timestamp)
- setTimestamp(java.lang.String, long)
- setVariant(int, borland.jbcl.util.Variant)
- setVariant(java.lang.String, borland.jbcl.util.Variant)
DataRow constructors
DataRow(borland.jbcl.dataset.DataSet)
public DataRow(borland.jbcl.dataset.DataSet dataSet)
Constructs a DataRow containing data from the current row position and including
all the Column components of the specified DataSet. On error, this constructor throws a DataSetException.
Parameters:
- dataSet
- The DataSet component from which to clone data for the DataRow. All Column components of the DataSet are included in the DataRow.
DataRow(borland.jbcl.dataset.DataSet, java.lang.String)
public DataRow(borland.jbcl.dataset.DataSet dataSet, java.lang.String columnName)
Creates a "scoped" DataRow containing data from the specified column of the current row position.
On error, this constructor throws a DataSetException.
Parameters:
- dataSet
- The DataSet component from which to clone data for the DataRow. Only the Column component specified in the columnName parameter is included in the DataRow.
- columnName
- The String name of the Column to include in the DataRow.
DataRow(borland.jbcl.dataset.DataSet, java.lang.String[])
public DataRow(borland.jbcl.dataset.DataSet dataSet, java.lang.String[] columnNames)
Constructs a "scoped" DataRow containing data from specified columns of the current row position. On error, this constructor throws a DataSetException.
Parameters:
- dataSet
- The DataSet component from which to clone data for the DataRow. All Column components of the DataSet are included in the DataRow.
- columnNames
- An array of String names of the Column components to include in the DataRow.