|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A table of data representing a repository result set, which is usually generated by executing a statement that queries the repository. Company MoreData
| Method Summary | |
void |
backup()
Backup all data set in paralel struture |
void |
backupCell(int rowNumber,
int columnNumber)
Backup a cell content. |
void |
backupRow(int rowNumber)
Backup an entire row. |
void |
clear()
Remove all the data from the RecordSet. |
void |
deleteRow(int rowNumber)
Remove a row from the RecordSet. |
java.lang.Object |
getBackupCell(int rowNumber,
int columnNumber)
Return the value of a backup cell. |
java.lang.Object |
getCellAt(int rowNumber,
int columnNumber)
Return the value of a cell. |
int |
getColumns()
Return the number of columns of the RecordSet. |
int |
getColumns(int rowNumber)
Return the number of columns of a giveen row of the RecordSet. |
java.util.List |
getDataRows()
Return a list of DataRow objects with all the rows of the RecordSet. |
int |
getDataSourceAction(int rowNumber)
Return the code of the action to be executed for a specific row to update the repository. |
java.util.List |
getDataSourcePK(int rowNumber)
Return a list of Object values for the primary key columns of all tables as they was readed from the repository. |
java.util.List |
getDataSourcePK(java.lang.String tableName,
int rowNumber)
Return a list of Object values for the primary key columns of one table as they was readed from the repository. |
java.util.List |
getPKValue(int rowNumber)
Return a list with the primary key columns value of a row. |
java.util.List |
getPKValue(java.lang.String tableName,
int rowNumber)
Return a list with the primary key columns value of one table row. |
int |
getRows()
Return the number of row of the RecordSet. |
boolean |
isColumnModified(int columnNumber)
Check if a giveen column is modified. |
boolean |
isDeleted(int rowNumber)
Check if a row is deleted. |
boolean |
isEngineProcessed(int rowNumber)
Check if any cell of a row is processed by the repository. |
boolean |
isEngineProcessed(int rowNumber,
int columnNumber)
Check if a cell is processed by the repository. |
boolean |
isEngineProcessed(int rowNumber,
java.lang.String tableName)
Check if any cell of a row for a giveen table is processed by the repository. |
boolean |
isModified()
Check if the RecordSet is modified. |
boolean |
isModified(int rowNumber)
Check if a RecordSet row is modified. |
boolean |
isModified(int rowNumber,
int columnNumber)
Check if a cell of the RecordSet is modified. |
boolean |
isNewRow(int rowNumber)
Check if a row is a new row. |
boolean |
isWaitingToBeLoad(int rowNumber,
int columnNumber)
Check if the cell data is waiting for a call to the getCellAt(..) |
void |
resetAllFlags()
Reset all flags for all row of the Recordset. |
void |
resetAllFlags(int rowNumber)
Reset all flags of a giveen row. |
void |
restore()
Restore all data in the backup to the original struture |
void |
restoreCell(int rowNumber,
int columnNumber)
Restore a cell content. |
void |
restoreRow(int rowNumber)
Restore an entire row. |
void |
setDeleted(int rowNumber,
boolean deleted)
Change the deleted property flag of a giveen row. |
void |
setEngineProcessed(int rowNumber,
boolean engineProcessed)
Change the engineProcessed property of a row. |
void |
setNewRow(int rowNumber,
boolean newRow)
Change the value of the newRow property of a row. |
void |
setWaitingToBeLoad(int rowNumber,
int columnNumber,
boolean isWaiting)
Change the cell data flag that indicate that the cell is waiting for a call to the getCellAt(..) method to be load. |
void |
touch(int rowNumber)
Mark all cells of a row as not modified. |
void |
touch(int rowNumber,
int columnNumber)
Mark the cell as not modified. |
void |
touch(java.lang.String tableName,
int rowNumber)
Mark all cells of a row of a table as not modified. |
void |
updateCellAt(int rowNumber,
int columnNumber,
java.lang.Object value)
Change the value of a cell. |
void |
updateCellAt(int rowNumber,
int columnNumber,
java.lang.Object value,
boolean engineProcessed)
Change the value of a cell. |
void |
updateColumn(int columnNumber,
java.lang.Object value)
Change the value of all cell of a RecordSet column. |
| Method Detail |
public void backup()
public void backupCell(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void backupRow(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().public void clear()
public void deleteRow(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public java.lang.Object getBackupCell(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public java.lang.Object getCellAt(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().public int getColumns()
public int getColumns(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().public java.util.List getDataRows()
public int getDataSourceAction(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public java.util.List getDataSourcePK(java.lang.String tableName,
int rowNumber)
throws RowIndexOutOfBoundsException,
UnknownTableNameException,
AmbiguousTableNameException
tableName - The table name.rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
UnknownTableNameException - When the supplied table name is invalid.
AmbiguousTableNameException - When the supplied tableName exists
more than once.
public java.util.List getDataSourcePK(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public java.util.List getPKValue(java.lang.String tableName,
int rowNumber)
throws RowIndexOutOfBoundsException,
UnknownTableNameException,
AmbiguousTableNameException
tableName - The table name.rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
UnknownTableNameException - When the supplied table name is invalid.
AmbiguousTableNameException - When the supplied tableName exists
more than once.
public java.util.List getPKValue(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().public int getRows()
public boolean isColumnModified(int columnNumber)
throws ColumnIndexOutOfBoundsException
columnNumber - The column number, an integer from 0 to getColumns()-1.
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public boolean isDeleted(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public boolean isEngineProcessed(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public boolean isEngineProcessed(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public boolean isEngineProcessed(int rowNumber,
java.lang.String tableName)
throws RowIndexOutOfBoundsException,
UnknownTableNameException,
AmbiguousTableNameException
rowNumber - The row number, an integer from 0 to getRows()-1.tableName - The table name.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
UnknownTableNameException - When the supplied table name is invalid.
AmbiguousTableNameException - When the supplied tableName exists
more than once.
public boolean isModified(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().public boolean isModified()
public boolean isModified(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public boolean isNewRow(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public boolean isWaitingToBeLoad(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void resetAllFlags(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().public void resetAllFlags()
public void restore()
public void restoreCell(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void restoreRow(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public void setDeleted(int rowNumber,
boolean deleted)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.deleted - True for change the row state to deleted,
false otherwise.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public void setEngineProcessed(int rowNumber,
boolean engineProcessed)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.engineProcessed - New value of property engineProcessed.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public void setNewRow(int rowNumber,
boolean newRow)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.newRow - True for change the row state to new row,
false otherwise.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public void setWaitingToBeLoad(int rowNumber,
int columnNumber,
boolean isWaiting)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.isWaiting - True to indicate that the cell data is waiting to
be loaded from the repository.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void touch(int rowNumber,
int columnNumber)
throws RowIndexOutOfBoundsException,
ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void touch(java.lang.String tableName,
int rowNumber)
throws RowIndexOutOfBoundsException,
UnknownTableNameException,
AmbiguousTableNameException
tableName - The table name.rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
UnknownTableNameException - When the supplied table name is invalid.
AmbiguousTableNameException - When the supplied tableName exists
more than once.
public void touch(int rowNumber)
throws RowIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.
RowIndexOutOfBoundsException - If rowNumber < 0 or
rowNumber >= getRows().
public void updateCellAt(int rowNumber,
int columnNumber,
java.lang.Object value)
throws ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.value - The new cell value.
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void updateCellAt(int rowNumber,
int columnNumber,
java.lang.Object value,
boolean engineProcessed)
throws ColumnIndexOutOfBoundsException
rowNumber - The row number, an integer from 0 to getRows()-1.columnNumber - The column number, an integer from 0 to getColumns()-1.value - The new cell value.engineProcessed - True if the cell content is to be processed by
the repository.
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
public void updateColumn(int columnNumber,
java.lang.Object value)
throws ColumnIndexOutOfBoundsException
columnNumber - The column number, an integer from 0 to getColumns()-1.value - The value to be set in each cell of the column.
ColumnIndexOutOfBoundsException - If columnNumber < 0 or
columnNumber >= getColumns().
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||