|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableProcedureRecordSet
A ProcedureRecordSet
whose contents can be modified. Records can
be changed, added, removed and sorted.
Method Summary | |
---|---|
MutableProcedureRecord |
addRecord()
Adds a new record to the end of the recordset. |
MutableProcedureRecord |
addRecord(int row)
Inserts a new record at the specified row. |
MutableProcedureRecord |
addRecord(int row,
Record record)
Inserts a copy of an existing record at the specified row. |
MutableProcedureRecord |
addRecord(int row,
Record record,
java.util.Map mapping)
Inserts a copy of an existing record at the specified row. |
MutableProcedureRecord |
addRecord(Record record)
Adds a copy of an existing record. |
MutableProcedureRecord |
addRecord(Record record,
java.util.Map mapping)
Adds a copy of an existing record. |
void |
addRecords(int row,
RecordSet recordset)
Inserts a copy of all records in the specified record set at the specified row. |
void |
addRecords(int row,
RecordSet recordset,
java.util.Map mapping)
Inserts a copy of all records in the specified record set at the specified row. |
void |
addRecords(RecordSet recordset)
Adds a copy of all records in the specified record set. |
void |
addRecords(RecordSet recordset,
java.util.Map mapping)
Adds a copy of all records in the specified record set. |
MutableProcedureRecord |
getMutableProcedureRecord(int row)
Gets a record by row number. |
void |
removeRecord(int row)
Removes the record at the specified row. |
void |
removeRecord(ProcedureRecord record)
Removes the specified record from the record set. |
void |
sortRecords(java.util.Comparator comparator)
Sorts the records using a Comparator . |
void |
sortRecords(int column)
Sort the records based on a column. |
void |
sortRecords(int[] columns)
Sort the records based multiple columns. |
Methods inherited from interface com.wrq.vhi.script.api.ProcedureRecordSet |
---|
getProcedureRecord |
Methods inherited from interface com.wrq.vhi.script.api.RecordSet |
---|
getColumnNames, getCount, getRecord, toXMLString |
Method Detail |
---|
MutableProcedureRecord getMutableProcedureRecord(int row)
RecordSet.getRecord(int)
except that no cast is required to obtain
the MutableProcedureRecord
interface.
row
- the zero-based row number
java.lang.IllegalArgumentException
- if the row index is invalidMutableProcedureRecord addRecord()
MutableProcedureRecord addRecord(int row)
row
- the row number at which to insert the new record
MutableProcedureRecord addRecord(Record record)
record
- the existing record
MutableProcedureRecord addRecord(int row, Record record)
row
- the row number at which to insert the new recordrecord
- the existing record
MutableProcedureRecord addRecord(Record record, java.util.Map mapping)
record
- the existing recordmapping
- a map of column names in the specified record to
column names in this record set
MutableProcedureRecord addRecord(int row, Record record, java.util.Map mapping)
row
- the row number at which to insert the new recordrecord
- the existing recordmapping
- a map of column names in the specified record to
column names in this record set
void addRecords(RecordSet recordset)
addRecord(com.wrq.vhi.script.api.Record)
for details on
how each record is processed.
recordset
- the recordset from which to copy the recordsvoid addRecords(int row, RecordSet recordset)
addRecord(int, com.wrq.vhi.script.api.Record)
for details on how each record is processed.
row
- the row number at which to insert the new recordsrecordset
- the recordset from which to copy the recordsvoid addRecords(RecordSet recordset, java.util.Map mapping)
addRecord(com.wrq.vhi.script.api.Record, java.util.Map)
for details on how each record is processed.
recordset
- the recordset from which to copy the recordsmapping
- a map of column names in the specified record to
column names in this record setvoid addRecords(int row, RecordSet recordset, java.util.Map mapping)
addRecord(int, com.wrq.vhi.script.api.Record, java.util.Map)
for details on how each record is processed.
row
- the row number at which to insert the new recordsrecordset
- the recordset from which to copy the recordsmapping
- a map of column names in the specified record to
column names in this record setvoid removeRecord(int row) throws java.lang.IllegalArgumentException
row
- the row number of the record to remove
java.lang.IllegalArgumentException
- if the row index is invalidvoid removeRecord(ProcedureRecord record) throws java.lang.IllegalArgumentException
record
- the record to remove
java.lang.IllegalArgumentException
- if the record is not foundvoid sortRecords(int column)
column
- the index of the column to sort byvoid sortRecords(int[] columns)
columns
- an array of column indices to sort byvoid sortRecords(java.util.Comparator comparator)
Comparator
.
comparator
- the comparator to use to compare rows
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |