Class JpaTransactionWrapper
java.lang.Object
org.keycloak.models.map.storage.jpa.JpaTransactionWrapper
- All Implemented Interfaces:
KeycloakTransaction
Wraps an
EntityTransaction
as a KeycloakTransaction
so it can be enlisted in KeycloakTransactionManager
.- Author:
- Stefan Guilhen
-
Constructor Details
-
JpaTransactionWrapper
public JpaTransactionWrapper(jakarta.persistence.EntityTransaction transaction)
-
-
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
-