DataRow
Inheritance: java.lang.Object
public class DataRow
Represents a row of data in a DataTable.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
column | DataColumn | A 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:
Parameter | Type | Description |
---|---|---|
columnIndex | int | The 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:
Parameter | Type | Description |
---|---|---|
columnName | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
relation | DataRelation | The 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:
Parameter | Type | Description |
---|---|---|
childKey | DataKey |
Returns: java.lang.Object[]
getOriginalValue(String columnName)
public Object getOriginalValue(String columnName)
Parameters:
Parameter | Type | Description |
---|---|---|
columnName | java.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:
Parameter | Type | Description |
---|---|---|
relation | DataRelation | The 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:
Parameter | Type | Description |
---|---|---|
relation | DataRelation | The 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:
Parameter | Type | Description |
---|---|---|
resultSet | java.sql.ResultSet | storage to read from |
Returns: boolean - true if no read errors occurred
remove(int index)
public void remove(int index)
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
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:
Parameter | Type | Description |
---|---|---|
column | DataColumn | A DataColumn that contains the data. |
value | java.lang.Object | An 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:
Parameter | Type | Description |
---|---|---|
columnIndex | int | The zero-based index of the column. |
value | java.lang.Object | An 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:
Parameter | Type | Description |
---|---|---|
columnName | java.lang.String | The name of the column. |
value | java.lang.Object | An 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:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object[] | An array of type java.lang.Object. |
setOriginalValue(String columnName, Object data)
public void setOriginalValue(String columnName, Object data)
Parameters:
Parameter | Type | Description |
---|---|---|
columnName | java.lang.String | |
data | java.lang.Object |
setRowState(int state)
public void setRowState(int state)
Parameters:
Parameter | Type | Description |
---|---|---|
state | int |
toString()
public String toString()
Returns: java.lang.String