|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface used for writing data to the repository. Company MoreData
| Method Summary | |
void |
commit()
Makes all changes made since the previous commit/rollback permanent and releases any repository locks currently held by this Writer Connection object.
|
void |
delete(java.lang.String tableName,
int rowNumber)
Delete one row of data in the repository. |
boolean |
getAutoCommit()
Retrieves the current auto-commit mode for the Connection
object of this Writer. |
void |
insert(java.lang.String tableName,
int rowNumber)
Insert a row of data from one table of the DAO and write it to the repository. |
void |
rollback()
Undoes all changes made in the current transaction and releases any database locks currently held by this Writer Connection object. |
void |
setAutoCommit(boolean autoCommit)
Sets this Writer connection's auto-commit mode to the given state. |
void |
setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
Set the DAOFieldsInfo object with information about the columns of the RecordSet. |
void |
setRecordSet(RecordSet recordSet)
Set the RecordSet that contains the data to be written to the repository. |
void |
update(java.lang.String tableName,
int rowNumber,
int updateType)
Update data on the repository from one table row of the DAO. |
void |
write(WriterInformation info)
Read all data from one table of the RecordSet and write it to the repository. |
| Method Detail |
public void setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
fieldsInfo - The DAOFieldInfo object.public void setRecordSet(RecordSet recordSet)
recordSet - The RecorSet object with information to be written.
public void write(WriterInformation info)
throws WriterException
info - Adicional information to help writing to the Repository
WriterException - If an error occur will writing data
to the repository.
public void insert(java.lang.String tableName,
int rowNumber)
throws WriterException
tableName - The table name.rowNumber - The row number to be insert.
WriterException - If there is an error inserting the row in
the repository
public void update(java.lang.String tableName,
int rowNumber,
int updateType)
throws WriterException
tableName - The table name.rowNumber - The row number to be update.updateType - The type of update to be executed. It could be
DataAccessObject.SUPERSET_UPDATE or
DataAccessObject.INDIVIDUAL_UPDATE.
WriterException - If there is an error updating the row in
the repository
public void delete(java.lang.String tableName,
int rowNumber)
throws WriterException
tableName - The table name.rowNumber - The row number to be deleted.
WriterException - If there is an error deleting the row from
the repository
public boolean getAutoCommit()
throws WriterException
Connection
object of this Writer.
Connection object's
auto-commit mode for this Writer.
WriterException - if a repository access error occurssetAutoCommit(boolean)
public void setAutoCommit(boolean autoCommit)
throws WriterException
commit or the method rollback.
The commit occurs when the statement completes or the next
execute occurs, whichever comes first. In the case of
statements returning a ResultSet object,
the statement completes when the last row of the
ResultSet object has been retrieved or the
ResultSet object has been closed. In advanced cases, a single
statement may return multiple results as well as output
parameter values. In these cases, the commit occurs when all results and
output parameter values have been retrieved.
NOTE: If this method is called during a transaction, the transaction is committed.
autoCommit - true to enable auto-commit mode;
false to disable it
WriterException - if a database access error occursgetAutoCommit()
public void commit()
throws WriterException
Writer Connection object.
This method should be
used only when auto-commit mode has been disabled.
WriterException - if a database access error occurs or this
Writer Connection object is in auto-commit modesetAutoCommit(boolean)
public void rollback()
throws WriterException
Writer Connection object. This method should be
used only when auto-commit mode has been disabled.
WriterException - if a database access error occurs or this
Writer Connection object is in auto-commit modesetAutoCommit(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||