Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


oracle.odi.core.persistence.transaction.support
Class DefaultTransactionDefinition

java.lang.Object
  extended by oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition

All Implemented Interfaces:
ITransactionDefinition
Direct Known Subclasses:
TransactionTemplate

public class DefaultTransactionDefinition
extends java.lang.Object
implements ITransactionDefinition

Default implementation of ITransactionDefinition interface, allowing for bean-style configuration and default values (PROPAGATION_REQUIRED, TIMEOUT_DEFAULT).

Since:
11.1.1.3.0

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

DefaultTransactionDefinition

public DefaultTransactionDefinition()
Create a new DefaultTransactionDefinition using default values. (PROPAGATION_REQUIRED, TIMEOUT_DEFAULT)

DefaultTransactionDefinition

public DefaultTransactionDefinition(int pPropagationBehavior)
Create a new DefaultTransactionDefinition with the given propagation behavior
Parameters:
pPropagationBehavior - the propagation behavior

DefaultTransactionDefinition

public DefaultTransactionDefinition(ITransactionDefinition pDefinition)
Copy constructor.
Parameters:
pDefinition - the definition to get properties from

Method Detail

getName

public java.lang.String getName()
Description copied from interface: ITransactionDefinition
Return the name of this transaction. Can be null.
Specified by:
getName in interface ITransactionDefinition
Returns:
the name of this transaction
See Also:
setName(String)

getPropagationBehavior

public int getPropagationBehavior()
Description copied from interface: ITransactionDefinition
Return the propagation behavior.

Must return one of the PROPAGATION_XXX constants defined on this interface.

Specified by:
getPropagationBehavior in interface ITransactionDefinition
Returns:
the propagation behavior
See Also:
setPropagationBehavior(int)

getTimeout

public int getTimeout()
Description copied from interface: ITransactionDefinition
Return the transaction timeout.

Must return a number of seconds, or DefaultTransactionDefinition.TIMEOUT_DEFAULT.

Specified by:
getTimeout in interface ITransactionDefinition
Returns:
the transaction timeout
See Also:
setTimeout(int)

setName

public void setName(java.lang.String pName)
Set the name of this transaction.
Parameters:
pName - name of the transaction
See Also:
getName()

setPropagationBehavior

public void setPropagationBehavior(int pPropagationBehavior)
Set the propagation behavior.
Parameters:
pPropagationBehavior - the propagation behavior
Throws:
java.lang.IllegalArgumentException - - if the supplied value is not one of the PROPAGATION_ constants
See Also:
getPropagationBehavior()

setTimeout

public void setTimeout(int pTimeout)
Set the timeout to apply, as number of seconds.
Parameters:
pTimeout - the timeout
See Also:
getTimeout()

getExtendedPersistentContext

public IOdiEntityManager getExtendedPersistentContext()
Description copied from interface: ITransactionDefinition
Return extended persistence context.
Specified by:
getExtendedPersistentContext in interface ITransactionDefinition
Returns:
an IOdiEntityManager, or null if undefined / not used.

setExtendedEntityManager

public void setExtendedEntityManager(IOdiEntityManager pExtendedEntityManager)
Set the extended entity manager.
Parameters:
pExtendedEntityManager - entity manager

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.