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

E17060-01

oracle.odi.domain.project
Class OdiProcedureLineCmd

java.lang.Object
  extended by oracle.odi.domain.project.OdiProcedureLineCmd

public class OdiProcedureLineCmd
extends java.lang.Object

The OdiProcedureLineCmd contains information about the source or target line. It is mapped indirectly to SNP_LINE_TRT. This object will be constructed by the getOnSourceCommand or getTOnTargetCommand in the line objects.

The specific line attributes will be set in the (line).setOnSourceCommand or (line).setOnTargetCommand.

An OdiProcedureLineCmd does not provide any validation logic against physical location defined throught OdiContext, OdiLogicalSchema and OdiTechnology. It is a simple entity holder in this regard.

However, an OdiProcedureLineCmd maintains logic regarding commit VS autocommit mode.

It is a value object and does not have any particular life cycle, and no identity.

Two OdiProcedureLineCmd instances are equals if and only if all there properties are equals. Also, OdiProcedureLineCmd class provides a by copy constructor.

Since:
11.1.1.3.0

Nested Class Summary
static class OdiProcedureLineCmd.CommitMode
          Commit Mode
static class OdiProcedureLineCmd.IsolationLevel
          Isolation Level
 
Constructor Summary
OdiProcedureLineCmd()
          Create a new OdiProceudreLineCmd setting no attributes.
OdiProcedureLineCmd(OdiProcedureLineCmd.CommitMode pCommitMode, java.lang.Integer pTransactionChannel, boolean pAutoCommitMode, OdiProcedureLineCmd.IsolationLevel pIsolationLevel, OdiContext pExecutionContext, OdiTechnology pTechnology, OdiLogicalSchema pLogicalSchema, Expression pExpression)
          Create a new OdiProcdureLine setting all attributes to specific values.
OdiProcedureLineCmd(OdiProcedureLineCmd pOdiProcedureLineCmd)
          Copy Constructor for OdiProcdureLineCmd.
 
Method Summary
 boolean equals(java.lang.Object pObject)
          Determines if the pOdiProcedureLineCmd equals this.
 OdiProcedureLineCmd.CommitMode getCommitMode()
          Obtains the CommitMode of this OdiProcedureLineCmd.
 OdiContext getExecutionContext()
          Obtains the execution context of this OdiProcedureLineCmd.
 Expression getExpression()
          Obtains the expression of this OdiProcedureLineCmd.
 OdiProcedureLineCmd.IsolationLevel getIsolationLevel()
          Obtains the IsolationLevel of the OdiProcedureLineCmd.
 OdiLogicalSchema getLogicalSchema()
          Obtains the logical schema this OdiProcedureLineCmd will be executed on.
 OdiTechnology getTechnology()
          Obtains the technology this OdiProcedureLineCmd aims to be executed on.
 java.lang.Integer getTransactionChannel()
          Obtains the transaction channel of this OdiProcedureLineCmd.
 int hashCode()
          Calculates the hash code for this.
 boolean isAutoCommitMode()
          Convenient method that return whether this OdiProcedureLineCmd should be executed in autoCommit mode or not.
 void setAutoCommitMode()
          Defines this OdiProcedureLineCmd to be executed in autoCommitMode.
 void setExecutionContext(OdiContext pExecutionContext)
          Defines the execution context of this OdiProcedureLineCmd.
 void setExpression(Expression pExpression)
          Defines the expression of this OdiProcedureLineCmd.
 void setIsolationLevel(OdiProcedureLineCmd.IsolationLevel pIsolationLevel)
          Defines the IsolationLevel of the OdiProcedureLineCmd.
 void setLogicalSchema(OdiLogicalSchema pLogicalSchema)
          Defines the logical schema this OdiProcedureLineCmd will be executed on.
 void setTechnology(OdiTechnology pTechnology)
          Defines the technology this OdiProcedureLineCmd aims to be executed on.
 void setTransactionBehavior(int pTtransactionChannel, OdiProcedureLineCmd.CommitMode pCommitMode)
          Define the transaction behavior of this OdiProcedureLineCmd.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdiProcedureLineCmd

public OdiProcedureLineCmd()
Create a new OdiProceudreLineCmd setting no attributes.


OdiProcedureLineCmd

public OdiProcedureLineCmd(OdiProcedureLineCmd.CommitMode pCommitMode,
                           java.lang.Integer pTransactionChannel,
                           boolean pAutoCommitMode,
                           OdiProcedureLineCmd.IsolationLevel pIsolationLevel,
                           OdiContext pExecutionContext,
                           OdiTechnology pTechnology,
                           OdiLogicalSchema pLogicalSchema,
                           Expression pExpression)
Create a new OdiProcdureLine setting all attributes to specific values.

Parameters:
pCommitMode - commit mode of new object
pTransactionChannel - transaction channel of new object
pAutoCommitMode - boolean is auto commit mode?
pIsolationLevel - isolation level of new object
pExecutionContext - execution context of new object
pTechnology - OdiTechnology or new object
pLogicalSchema - OdiLogicalSchema of new object
pExpression - Expression of new object

OdiProcedureLineCmd

public OdiProcedureLineCmd(OdiProcedureLineCmd pOdiProcedureLineCmd)
Copy Constructor for OdiProcdureLineCmd.

Parameters:
pOdiProcedureLineCmd - Construct from this object
Method Detail

equals

public boolean equals(java.lang.Object pObject)
Determines if the pOdiProcedureLineCmd equals this.

Overrides:
equals in class java.lang.Object
Parameters:
pObject - Object for comparison
Returns:
true if equal

getCommitMode

public OdiProcedureLineCmd.CommitMode getCommitMode()
Obtains the CommitMode of this OdiProcedureLineCmd. Will be null if undefined or if autoCommit is on.

Returns:
CommotMode enum.

getExecutionContext

public OdiContext getExecutionContext()
Obtains the execution context of this OdiProcedureLineCmd.

Returns:
OdiContext for execution
See Also:
setExecutionContext(oracle.odi.domain.topology.OdiContext)

getExpression

public Expression getExpression()
Obtains the expression of this OdiProcedureLineCmd.

Returns:
Expression object
See Also:
setExpression(oracle.odi.domain.xrefs.expression.Expression)

getIsolationLevel

public OdiProcedureLineCmd.IsolationLevel getIsolationLevel()
Obtains the IsolationLevel of the OdiProcedureLineCmd. Can be null if not set.

Returns:
IsolationLevel of object
See Also:
setIsolationLevel(oracle.odi.domain.project.OdiProcedureLineCmd.IsolationLevel)

getLogicalSchema

public OdiLogicalSchema getLogicalSchema()
Obtains the logical schema this OdiProcedureLineCmd will be executed on.

Returns:
Logical schema object
See Also:
setLogicalSchema(oracle.odi.domain.topology.OdiLogicalSchema)

getTechnology

public OdiTechnology getTechnology()
Obtains the technology this OdiProcedureLineCmd aims to be executed on.

Returns:
Technology object.
See Also:
setTechnology(oracle.odi.domain.topology.OdiTechnology)

getTransactionChannel

public java.lang.Integer getTransactionChannel()
Obtains the transaction channel of this OdiProcedureLineCmd. Will be null if undefined or autoCommit on.

Returns:
Channel number

hashCode

public int hashCode()
Calculates the hash code for this.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

isAutoCommitMode

public boolean isAutoCommitMode()
Convenient method that return whether this OdiProcedureLineCmd should be executed in autoCommit mode or not.

Returns:
true if auto commit mode

setAutoCommitMode

public void setAutoCommitMode()
Defines this OdiProcedureLineCmd to be executed in autoCommitMode. CommitMode and transactionChannel are set to null This is unset by calling the setTransactionBehavior.

See Also:
setTransactionBehavior(int, oracle.odi.domain.project.OdiProcedureLineCmd.CommitMode)

setExecutionContext

public void setExecutionContext(OdiContext pExecutionContext)
Defines the execution context of this OdiProcedureLineCmd. Can be null if undefined or for no DB command.

Parameters:
pExecutionContext - OdiContext for execution
See Also:
getExecutionContext()

setExpression

public void setExpression(Expression pExpression)
Defines the expression of this OdiProcedureLineCmd. Can be null if undefined.

Parameters:
pExpression - Expression for this object
See Also:
getExpression()

setIsolationLevel

public void setIsolationLevel(OdiProcedureLineCmd.IsolationLevel pIsolationLevel)
Defines the IsolationLevel of the OdiProcedureLineCmd. Can be null if undefined or for no DB command.

Parameters:
pIsolationLevel - IsolationLevel of object
See Also:
getIsolationLevel()

setLogicalSchema

public void setLogicalSchema(OdiLogicalSchema pLogicalSchema)
Defines the logical schema this OdiProcedureLineCmd will be executed on. Can be null if undefined or for no DB command.

Parameters:
pLogicalSchema - OdiLogicalSchema for this object
See Also:
getLogicalSchema()

setTechnology

public void setTechnology(OdiTechnology pTechnology)
Defines the technology this OdiProcedureLineCmd aims to be executed on. Can be null if undefined.

Parameters:
pTechnology - OdiTechnology for this object
See Also:
getTechnology()

setTransactionBehavior

public void setTransactionBehavior(int pTtransactionChannel,
                                   OdiProcedureLineCmd.CommitMode pCommitMode)
                            throws java.lang.IllegalArgumentException
Define the transaction behavior of this OdiProcedureLineCmd. This will set the transaction channel and commit mode.

Parameters:
pTtransactionChannel - transaction channel to set
pCommitMode - commit mode to set
Throws:
java.lang.IllegalArgumentException - if commitMode is null and channel < 0
See Also:
setAutoCommitMode()

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

E17060-01

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