Class HibernateBulkTransaction
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.bulk.HibernateBulkTransaction
-
- All Implemented Interfaces:
BulkTransaction
public class HibernateBulkTransaction extends Object implements BulkTransaction
Wrap low layer transaction management for bulk action. Easier for us to mock BulkTransaction than Hibernate Transaction- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description HibernateBulkTransaction(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> boolean
beginTransaction(T... reattachObjects)
boolean
commitTransaciton()
<T> boolean
rollbackTransaciton()
boolean
shouldStartTransaction()
-
-
-
Method Detail
-
shouldStartTransaction
public boolean shouldStartTransaction()
- Specified by:
shouldStartTransaction
in interfaceBulkTransaction
-
beginTransaction
public <T> boolean beginTransaction(T... reattachObjects)
- Specified by:
beginTransaction
in interfaceBulkTransaction
-
rollbackTransaciton
public <T> boolean rollbackTransaciton()
- Specified by:
rollbackTransaciton
in interfaceBulkTransaction
-
commitTransaciton
public boolean commitTransaciton()
- Specified by:
commitTransaciton
in interfaceBulkTransaction
-
-