The (zero-based) location in the collection where you want to add the DataRow.
removeAt(int index)
public void removeAt(int index)
Removes the row at the specified index from the collection.
Parameters:
Parameter
Type
Description
index
int
The index of the row to remove.
find(String primaryKeyValue)
public DataRow find(String primaryKeyValue)
Gets the row specified by the primary key value.
Parameters:
Parameter
Type
Description
primaryKeyValue
java.lang.String
The primary key value of the DataRow to find.
Returns:DataRow - A DataRow that contains the primary key value specified; otherwise a null value if the primary key value does not exist in the DataRowCollection.
find(Object[] keys)
public DataRow find(Object[] keys)
Gets the row that contains the specified primary key values.
Parameters:
Parameter
Type
Description
keys
java.lang.Object[]
An array of primary key values to find. The type of the array is Object.
Returns:DataRow - A DataRow object that contains the primary key values specified; otherwise a null value if the primary key value does not exist in the DataRowCollection.
get(Object[] values)
public DataRow get(Object[] values)
Gets the row that contains the specified values. If there is primary key’s column(s) present then the index will be used. If there is no index then simple linear scan is used. Be carefully with that because it could take a significant amount of time.