|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition
public class DefaultTransactionDefinition
Default implementation of ITransactionDefinition
interface, allowing for bean-style configuration and default values (PROPAGATION_REQUIRED, TIMEOUT_DEFAULT).
Field Summary |
---|
Fields inherited from interface oracle.odi.core.persistence.transaction.ITransactionDefinition |
---|
PROPAGATION_MANDATORY, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT |
Constructor Summary | |
---|---|
DefaultTransactionDefinition() Create a new DefaultTransactionDefinition using default values. |
|
DefaultTransactionDefinition(int pPropagationBehavior) Create a new DefaultTransactionDefinition with the given propagation behavior |
|
DefaultTransactionDefinition(ITransactionDefinition pDefinition) Copy constructor. |
Method Summary | |
---|---|
IOdiEntityManager |
getExtendedPersistentContext() Return extended persistence context. |
java.lang.String |
getName() Return the name of this transaction. |
int |
getPropagationBehavior() Return the propagation behavior. |
int |
getTimeout() Return the transaction timeout. |
void |
setExtendedEntityManager(IOdiEntityManager pExtendedEntityManager) Set the extended entity manager. |
void |
setName(java.lang.String pName) Set the name of this transaction. |
void |
setPropagationBehavior(int pPropagationBehavior) Set the propagation behavior. |
void |
setTimeout(int pTimeout) Set the timeout to apply, as number of seconds. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTransactionDefinition()
DefaultTransactionDefinition
using default values. (PROPAGATION_REQUIRED, TIMEOUT_DEFAULT)public DefaultTransactionDefinition(int pPropagationBehavior)
DefaultTransactionDefinition
with the given propagation behavior
pPropagationBehavior
- the propagation behaviorpublic DefaultTransactionDefinition(ITransactionDefinition pDefinition)
pDefinition
- the definition to get properties fromMethod Detail |
---|
public java.lang.String getName()
ITransactionDefinition
getName
in interface ITransactionDefinition
setName(String)
public int getPropagationBehavior()
ITransactionDefinition
Must return one of the PROPAGATION_XXX constants defined on this interface.
getPropagationBehavior
in interface ITransactionDefinition
setPropagationBehavior(int)
public int getTimeout()
ITransactionDefinition
Must return a number of seconds, or DefaultTransactionDefinition.TIMEOUT_DEFAULT.
getTimeout
in interface ITransactionDefinition
setTimeout(int)
public void setName(java.lang.String pName)
pName
- name of the transactiongetName()
public void setPropagationBehavior(int pPropagationBehavior)
pPropagationBehavior
- the propagation behaviorjava.lang.IllegalArgumentException
- - if the supplied value is not one of the PROPAGATION_ constantsgetPropagationBehavior()
public void setTimeout(int pTimeout)
pTimeout
- the timeoutgetTimeout()
public IOdiEntityManager getExtendedPersistentContext()
ITransactionDefinition
getExtendedPersistentContext
in interface ITransactionDefinition
IOdiEntityManager
, or null
if undefined / not used.public void setExtendedEntityManager(IOdiEntityManager pExtendedEntityManager)
pExtendedEntityManager
- entity manager
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |