public interface PersistenceWork extends PersistenceTask
PersistenceContainer| Modifier and Type | Method and Description |
|---|---|
void |
onPostExecute(boolean success)
Runs on separate thread after successful completion of
PersistenceTask.doTask(EntityManagerLite entityManager). |
void |
onRollback(Throwable rollbackException)
Handle rollback caused by exception while executing
PersistenceTask.doTask(EntityManagerLite entityManager) |
doTaskvoid onPostExecute(boolean success)
PersistenceTask.doTask(EntityManagerLite entityManager).success - True if PersistenceWork completed successfully, otherwise falsevoid onRollback(Throwable rollbackException)
PersistenceTask.doTask(EntityManagerLite entityManager)rollbackException - Throwable exception which caused rollbackThis documentation is licensed by Andrew Bowley under the GPLv3 License.