|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.action.internal.BulkOperationCleanupAction
public class BulkOperationCleanupAction
An ActionQueue
Executable
for ensuring
shared cache cleanup in relation to performed bulk HQL queries.
Constructor Summary | |
---|---|
BulkOperationCleanupAction(SessionImplementor session,
Queryable[] affectedQueryables)
Constructs an action to cleanup "affected cache regions" based on the affected entity persisters. |
|
BulkOperationCleanupAction(SessionImplementor session,
Set tableSpaces)
Constructs an action to cleanup "affected cache regions" based on a set of affected table spaces. |
Method Summary | |
---|---|
void |
beforeExecutions()
Called before executing any actions. |
void |
execute()
Execute this action |
AfterTransactionCompletionProcess |
getAfterTransactionCompletionProcess()
Get the after-transaction-completion process, if any, for this action. |
BeforeTransactionCompletionProcess |
getBeforeTransactionCompletionProcess()
Get the before-transaction-completion process, if any, for this action. |
Serializable[] |
getPropertySpaces()
What spaces (tables) are affected by this action? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BulkOperationCleanupAction(SessionImplementor session, Queryable[] affectedQueryables)
session
- The session to which this request is tied.affectedQueryables
- The affected entity persisters.public BulkOperationCleanupAction(SessionImplementor session, Set tableSpaces)
BulkOperationCleanupAction(SessionImplementor, Queryable[])
in that here we have the affected table names. From those
we deduce the entity persisters which are affected based on the defined
table spaces
; and from there, we
determine the affected collection regions based on any collections
in which those entity persisters participate as elements/keys/etc.
session
- The session to which this request is tied.tableSpaces
- The table spaces.Method Detail |
---|
public Serializable[] getPropertySpaces()
Executable
getPropertySpaces
in interface Executable
public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Executable
getBeforeTransactionCompletionProcess
in interface Executable
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Executable
getAfterTransactionCompletionProcess
in interface Executable
public void beforeExecutions() throws HibernateException
Executable
beforeExecutions
in interface Executable
HibernateException
- Indicates a problem during preparation.public void execute() throws HibernateException
Executable
execute
in interface Executable
HibernateException
- Indicates a problem during execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |