Package org.keycloak.models
Class AbstractKeycloakTransaction
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
- All Implemented Interfaces:
KeycloakTransaction
- Direct Known Subclasses:
AuthenticationSessionTransaction
,EventListenerTransaction
,InfinispanChangelogBasedTransaction
,LDAPTransaction
,PersistentSessionsChangelogBasedTransaction
,RemoteChangeLogTransaction
,SessionEventsSenderTransaction
,SingleUseObjectTransaction
,UserSessionTransaction
Handles some common transaction logic related to start, rollback-only etc.
- Author:
- Marek Posolda
-
Field Details
-
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
-
beginImpl
protected void beginImpl() -
commitImpl
protected abstract void commitImpl() -
rollbackImpl
protected abstract void rollbackImpl()
-