|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordHandler
Interface that all record handlers called by the Importer class should impliment.
Note that to allow for import transactions to be rolled back, implementors should use the Importer.getConnection() method when any DB save, update, or delete actions are performed.
Method Summary | |
---|---|
void |
addUpdateRecord(java.lang.Object record,
Importer dispatcher)
Handles both creating new record or updating existing record. |
java.lang.Object |
clone()
RecordHandlers need to be cloneable so the dispatcher can clone handlers as needed. |
void |
deleteRecord(java.lang.Object record,
Importer dispatcher)
Handles deleting records. |
Method Detail |
---|
void addUpdateRecord(java.lang.Object record, Importer dispatcher) throws java.lang.Exception
Implementors need to report any error or success back via the dispatcher's notifyListeners method.
record
- The record object to process.dispatcher
- The object to get connection, event listener info,
and the like from.
java.lang.Exception
void deleteRecord(java.lang.Object record, Importer dispatcher) throws java.lang.Exception
Implementors need to report any error or success back via the dispatcher's notifyListeners method.
record
- The record object to process.dispatcher
- The object to get connection, event listener info,
and the like from.
java.lang.Exception
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |