Package org.keycloak.models
Class AbstractKeycloakTransaction
- java.lang.Object
-
- org.keycloak.models.AbstractKeycloakTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
- Direct Known Subclasses:
AllAreasHotRodTransactionsWrapper
,EventListenerTransaction
,InfinispanChangelogBasedTransaction
,LDAPTransaction
,SessionEventsSenderTransaction
public abstract class AbstractKeycloakTransaction extends Object implements KeycloakTransaction
Handles some common transaction logic related to start, rollback-only etc.- Author:
- Marek Posolda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractKeycloakTransaction.TransactionState
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Logger
logger
protected AbstractKeycloakTransaction.TransactionState
state
-
Constructor Summary
Constructors Constructor Description AbstractKeycloakTransaction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
protected abstract void
commitImpl()
boolean
getRollbackOnly()
AbstractKeycloakTransaction.TransactionState
getState()
boolean
isActive()
void
rollback()
protected abstract void
rollbackImpl()
void
setRollbackOnly()
-
-
-
Field Detail
-
logger
public static final org.jboss.logging.Logger logger
-
state
protected AbstractKeycloakTransaction.TransactionState state
-
-
Method Detail
-
begin
public void begin()
- Specified by:
begin
in interfaceKeycloakTransaction
-
commit
public void commit()
- Specified by:
commit
in interfaceKeycloakTransaction
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnly
in interfaceKeycloakTransaction
-
getRollbackOnly
public boolean getRollbackOnly()
- Specified by:
getRollbackOnly
in interfaceKeycloakTransaction
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceKeycloakTransaction
-
getState
public AbstractKeycloakTransaction.TransactionState getState()
-
commitImpl
protected abstract void commitImpl()
-
rollbackImpl
protected abstract void rollbackImpl()
-
-