public class TransactionAttributeAdapter
extends Object
implements com.liferay.portal.kernel.transaction.TransactionAttribute, org.springframework.transaction.interceptor.TransactionAttribute
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
Constructor and Description |
---|
TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute) |
TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute,
boolean strictReadOnly) |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.transaction.Isolation |
getIsolation() |
int |
getIsolationLevel() |
Collection<String> |
getLabels() |
String |
getName() |
com.liferay.portal.kernel.transaction.Propagation |
getPropagation() |
int |
getPropagationBehavior() |
String |
getQualifier() |
int |
getTimeout() |
boolean |
isReadOnly() |
boolean |
isStrictReadOnly() |
boolean |
rollbackOn(Throwable throwable) |
public TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
public TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute, boolean strictReadOnly)
public com.liferay.portal.kernel.transaction.Isolation getIsolation()
public int getIsolationLevel()
getIsolationLevel
in interface org.springframework.transaction.TransactionDefinition
public Collection<String> getLabels()
getLabels
in interface org.springframework.transaction.interceptor.TransactionAttribute
public String getName()
getName
in interface org.springframework.transaction.TransactionDefinition
public com.liferay.portal.kernel.transaction.Propagation getPropagation()
public int getPropagationBehavior()
getPropagationBehavior
in interface org.springframework.transaction.TransactionDefinition
public String getQualifier()
getQualifier
in interface org.springframework.transaction.interceptor.TransactionAttribute
public int getTimeout()
getTimeout
in interface org.springframework.transaction.TransactionDefinition
public boolean isReadOnly()
isReadOnly
in interface org.springframework.transaction.TransactionDefinition
public boolean isStrictReadOnly()
public boolean rollbackOn(Throwable throwable)
rollbackOn
in interface org.springframework.transaction.interceptor.TransactionAttribute