Package org.keycloak.services
Class DefaultKeycloakTransactionManager
- java.lang.Object
-
- org.keycloak.services.DefaultKeycloakTransactionManager
-
- All Implemented Interfaces:
KeycloakTransaction
,KeycloakTransactionManager
public class DefaultKeycloakTransactionManager extends Object implements KeycloakTransactionManager
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.KeycloakTransactionManager
KeycloakTransactionManager.JTAPolicy
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
completed
-
Constructor Summary
Constructors Constructor Description DefaultKeycloakTransactionManager(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
void
enlist(KeycloakTransaction transaction)
void
enlistAfterCompletion(KeycloakTransaction transaction)
void
enlistPrepare(KeycloakTransaction transaction)
KeycloakTransactionManager.JTAPolicy
getJTAPolicy()
boolean
getRollbackOnly()
boolean
isActive()
void
rollback()
protected void
rollback(RuntimeException exception)
void
setJTAPolicy(KeycloakTransactionManager.JTAPolicy policy)
void
setRollbackOnly()
-
-
-
Constructor Detail
-
DefaultKeycloakTransactionManager
public DefaultKeycloakTransactionManager(KeycloakSession session)
-
-
Method Detail
-
enlist
public void enlist(KeycloakTransaction transaction)
- Specified by:
enlist
in interfaceKeycloakTransactionManager
-
enlistAfterCompletion
public void enlistAfterCompletion(KeycloakTransaction transaction)
- Specified by:
enlistAfterCompletion
in interfaceKeycloakTransactionManager
-
enlistPrepare
public void enlistPrepare(KeycloakTransaction transaction)
- Specified by:
enlistPrepare
in interfaceKeycloakTransactionManager
-
getJTAPolicy
public KeycloakTransactionManager.JTAPolicy getJTAPolicy()
- Specified by:
getJTAPolicy
in interfaceKeycloakTransactionManager
-
setJTAPolicy
public void setJTAPolicy(KeycloakTransactionManager.JTAPolicy policy)
- Specified by:
setJTAPolicy
in interfaceKeycloakTransactionManager
-
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
-
rollback
protected void rollback(RuntimeException exception)
-
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
-
-