Package org.keycloak.transaction
Class JtaTransactionWrapper
- java.lang.Object
-
- org.keycloak.transaction.JtaTransactionWrapper
-
- All Implemented Interfaces:
KeycloakTransaction
public class JtaTransactionWrapper extends Object implements KeycloakTransaction
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description JtaTransactionWrapper(KeycloakSessionFactory factory, javax.transaction.TransactionManager tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
protected void
end()
boolean
getRollbackOnly()
void
handleException(Throwable e)
boolean
isActive()
void
rollback()
void
setRollbackOnly()
-
-
-
Field Detail
-
tm
protected javax.transaction.TransactionManager tm
-
ut
protected javax.transaction.Transaction ut
-
suspended
protected javax.transaction.Transaction suspended
-
ended
protected Exception ended
-
factory
protected KeycloakSessionFactory factory
-
-
Constructor Detail
-
JtaTransactionWrapper
public JtaTransactionWrapper(KeycloakSessionFactory factory, javax.transaction.TransactionManager tm)
-
-
Method Detail
-
handleException
public void handleException(Throwable e)
-
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
-
end
protected void end()
-
-