DataRow

Inheritance: java.lang.Object

public class DataRow

Represents a row of data in a DataTable.

Methods

MethodDescription
delete()Deletes the DataRow.
get(System.Data.DataColumn column)Gets the data stored in the specified DataColumn.
get(int columnIndex)Gets the data stored in the column specified by index.
get(String columnName)Gets the data stored in the column specified by name.
getChildRows(System.Data.DataRelation relation)Gets the child rows of this DataRow using the specified DataRelation.
getItemArray()Gets all the values for this row through an array.
getKeyValues(System.Data.DataKey childKey)
getOriginalValue(String columnName)
getParentRow(System.Data.DataRelation relation)Gets the parent row of a DataRow using the specified DataRelation.
getParentRows(System.Data.DataRelation relation)Gets the parent rows of a DataRow using the specified DataRelation.
getRowState()Gets the current state of the row with regard to its relationship to the DataRowCollection.
getTable()Gets the DataTable for which this row has a schema.
readFrom(ResultSet resultSet)Reads values from the java.sql.ResultSet
remove(int index)
set(System.Data.DataColumn column, Object value)Sets the data stored in the specified DataColumn.
set(int columnIndex, Object value)Sets the data stored in the column specified by index.
set(String columnName, Object value)Sets the data stored in the column specified by name.
setItemArray(Object[] value)Sets all the values for this row through an array.
setOriginalValue(String columnName, Object data)
setRowState(int state)
toString()

delete()

public void delete()

Deletes the DataRow.

get(System.Data.DataColumn column)

public Object get(System.Data.DataColumn column)

Gets the data stored in the specified DataColumn.

Parameters:

ParameterTypeDescription
columnDataColumnA DataColumn that contains the data.

Returns: java.lang.Object - An java.lang.Object that contains the data.

get(int columnIndex)

public Object get(int columnIndex)

Gets the data stored in the column specified by index.

Parameters:

ParameterTypeDescription
columnIndexintThe zero-based index of the column.

Returns: java.lang.Object - An java.lang.Object that contains the data.

get(String columnName)

public Object get(String columnName)

Gets the data stored in the column specified by name.

Parameters:

ParameterTypeDescription
columnNamejava.lang.StringThe name of the column.

Returns: java.lang.Object - An java.lang.Object that contains the data.

getChildRows(System.Data.DataRelation relation)

public System.Data.DataRow[] getChildRows(System.Data.DataRelation relation)

Gets the child rows of this DataRow using the specified DataRelation.

Parameters:

ParameterTypeDescription
relationDataRelationThe DataRelation to use.

Returns: com.aspose.words.net.System.Data.DataRow[] - An array of DataRow objects or an array of length zero.

getItemArray()

public Object[] getItemArray()

Gets all the values for this row through an array.

Returns: java.lang.Object[] - An array of type java.lang.Object.

getKeyValues(System.Data.DataKey childKey)

public Object[] getKeyValues(System.Data.DataKey childKey)

Parameters:

ParameterTypeDescription
childKeyDataKey

Returns: java.lang.Object[]

getOriginalValue(String columnName)

public Object getOriginalValue(String columnName)

Parameters:

ParameterTypeDescription
columnNamejava.lang.String

Returns: java.lang.Object

getParentRow(System.Data.DataRelation relation)

public System.Data.DataRow getParentRow(System.Data.DataRelation relation)

Gets the parent row of a DataRow using the specified DataRelation.

Parameters:

ParameterTypeDescription
relationDataRelationThe DataRelation to use.

Returns: DataRow - The parent DataRow of the current row.

getParentRows(System.Data.DataRelation relation)

public System.Data.DataRow[] getParentRows(System.Data.DataRelation relation)

Gets the parent rows of a DataRow using the specified DataRelation.

Parameters:

ParameterTypeDescription
relationDataRelationThe DataRelation to use.

Returns: com.aspose.words.net.System.Data.DataRow[] - An array of DataRow objects or an array of length zero.

getRowState()

public int getRowState()

Gets the current state of the row with regard to its relationship to the DataRowCollection.

Returns: int - One of the DataRowState values. The returned value is a bitwise combination of DataRowState constants.

getTable()

public System.Data.DataTable getTable()

Gets the DataTable for which this row has a schema.

Returns: DataTable - The DataTable to which this row belongs.

readFrom(ResultSet resultSet)

public boolean readFrom(ResultSet resultSet)

Reads values from the java.sql.ResultSet

Parameters:

ParameterTypeDescription
resultSetjava.sql.ResultSetstorage to read from

Returns: boolean - true if no read errors occurred

remove(int index)

public void remove(int index)

Parameters:

ParameterTypeDescription
indexint

set(System.Data.DataColumn column, Object value)

public void set(System.Data.DataColumn column, Object value)

Sets the data stored in the specified DataColumn.

Parameters:

ParameterTypeDescription
columnDataColumnA DataColumn that contains the data.
valuejava.lang.ObjectAn java.lang.Object that contains the data.

set(int columnIndex, Object value)

public void set(int columnIndex, Object value)

Sets the data stored in the column specified by index.

Parameters:

ParameterTypeDescription
columnIndexintThe zero-based index of the column.
valuejava.lang.ObjectAn java.lang.Object that contains the data.

set(String columnName, Object value)

public void set(String columnName, Object value)

Sets the data stored in the column specified by name.

Parameters:

ParameterTypeDescription
columnNamejava.lang.StringThe name of the column.
valuejava.lang.ObjectAn java.lang.Object that contains the data.

setItemArray(Object[] value)

public void setItemArray(Object[] value)

Sets all the values for this row through an array.

Parameters:

ParameterTypeDescription
valuejava.lang.Object[]An array of type java.lang.Object.

setOriginalValue(String columnName, Object data)

public void setOriginalValue(String columnName, Object data)

Parameters:

ParameterTypeDescription
columnNamejava.lang.String
datajava.lang.Object

setRowState(int state)

public void setRowState(int state)

Parameters:

ParameterTypeDescription
stateint

toString()

public String toString()

Returns: java.lang.String