#805 - ENH: Add BeanState.resetForInsert() ... This resets bean state such that a save() results in an insert

This commit is contained in:
Robin Bygrave
2016-08-04 22:49:07 +12:00
parent 876476fdc1
commit 08e46d6bf3
11 changed files with 114 additions and 17 deletions
@@ -220,6 +220,12 @@ public interface SpiTransaction extends Transaction {
*/
Connection getInternalConnection();
/**
* Rollback if the transaction is active. This provides an internal
* mechanism for rollback failures occur on commit().
*/
void rollbackIfActive();
/**
* Return true if the manyToMany intersection should be persisted for this particular relationship direction.
*/