| java.lang.Object | |
| ↳ | com.atlassian.confluence.core.persistence.hibernate.HibernateSessionManager |
Provides methods to manage objects in the current Hibernate Session. Methods will
throw IllegalStateException if there is no active session on the executing thread.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Removes the object and its dependents from the active session.
| |||||||||||
Executes a bulk database update in a way that prevents excessive memory usage, by committing the
transaction and clearing the session periodically.
| |||||||||||
Returns the current session.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Removes the object and its dependents from the active session. Any un-flushed changes will be lost.
This method should be used when processing a large number of Hibernate objects in a read-only fashion.| IllegalStateException | if there is no active session |
|---|---|
| DataAccessException | if there is a problem evicting the object |
Executes a bulk database update in a way that prevents excessive memory usage, by committing the
transaction and clearing the session periodically. The provided task is executed once per
input item. The commit and session-clearing is done once per batchSize items.
| input | the list of items to process |
|---|---|
| batchSize | a transaction will be committed and the session will be cleared after this many input items |
| expectedTotal | the total number of items, used for logging |
| task | the task to execute |
| IllegalStateException | if there is no active session |
|---|---|
| DataAccessException | if there is a problem committing changes to the database |
Returns the current session.
| IllegalStateException | if there is no active session |
|---|

