Class HibernateBulkTransaction
java.lang.Object
com.atlassian.confluence.impl.hibernate.bulk.HibernateBulkTransaction
- All Implemented Interfaces:
BulkTransaction
Wrap low layer transaction management for bulk action. Easier for us to mock BulkTransaction than Hibernate Transaction
- Since:
- 5.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> boolean
beginTransaction
(T... reattachObjects) boolean
<T> boolean
boolean
-
Constructor Details
-
HibernateBulkTransaction
public HibernateBulkTransaction(org.hibernate.SessionFactory sessionFactory) - Since:
- 7.17.0
-
-
Method Details
-
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
-