Package org.keycloak.models
Class AbstractKeycloakTransaction
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
- All Implemented Interfaces:
KeycloakTransaction
- Direct Known Subclasses:
AllAreasHotRodStoresWrapper
,EventListenerTransaction
,InfinispanChangelogBasedTransaction
,LDAPTransaction
,SessionEventsSenderTransaction
Handles some common transaction logic related to start, rollback-only etc.
- Author:
- Marek Posolda
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.jboss.logging.Logger
-
Constructor Summary
-
Method Summary
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger -
state
-
-
Constructor Details
-
AbstractKeycloakTransaction
public AbstractKeycloakTransaction()
-
-
Method Details
-
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
-
commitImpl
protected abstract void commitImpl() -
rollbackImpl
protected abstract void rollbackImpl()
-