|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.odi.domain.support.BusinessObject
oracle.odi.domain.support.AbstractRepositoryEntity
oracle.odi.domain.project.OdiProcedureLine
public abstract class OdiProcedureLine
An OdiProcedureLine holds metadata about a task to be executed by ODI Execution Engine. Those metadata are about logging, generation conditions and actual commands to be executed on the target and / or the source connection.
An OdiProcedureLine is an entity managed within the OdiProcedure, OdiProcedureLine, OdiProcedureLineCmd, ProcedureOption aggregate.
An OdiProcedureLine has an ID (OdiProcedureLineId) that can be obtained from getProcedureLineId() method call. This ID is assigned when an OdiProcedure is stored into design time repository.
This ID represents the identity of an OdiProcedureLine. Equals / hashCode method are implemented according this identity.
The life cycle of an OdiProcedureLine start when it is created and added to the OdiProcedure it belongs. The user can then manipulate it and properties can be defined to fit user requirements: define logging to be applied when executed, target and / or source commands, etc. In order to change a OdiProcedureLine order (i.e. to move it), this has to be done from the OdiProcedure this OdiProcedureLine belongs.
OdiProcedure provides methods for that purpose. The life cycle ends when the OdiProcedureLine is removed from the OdiProcedure it belongs, or when the OdiProcedure owning the OdiProcedureLine is deleted.
Nested Class Summary | |
---|---|
static class |
OdiProcedureLine.LogCounter Internal Enum that represents the different log counter type an OdiProcedureLine can use. |
static class |
OdiProcedureLine.OdiProcedureLineId An OdiProcedureLineId represents the identity of an OdiProcedureLine object. |
Field Summary | |
---|---|
static int |
NAME_MAX_LENGTH Maximum length of an OdiProcedureLine name. |
Method Summary | |
---|---|
void |
addGenerationCondition(ProcedureOption pOption) Adds the given ProcedureOption to the collection of options that controls whether this ProcedureLine will be generated. |
java.util.Collection<ProcedureOption> |
getGenerationConditions() Obtains an unmodifiable collection of ProcedureOptions that are defined as conditioning generation of this ProcedureLine. |
java.io.Serializable |
getInternalId() Provides a common getter for the persistence layer to obtain an identity, irrespective of the actual type of identity used. |
OdiProcedureLine.LogCounter |
getLogCounter() Obtains the LogCounter defined for this ProcedureLine. |
int |
getLogLevel() Obtains the log level applied to this ProcedureLine. |
java.lang.String |
getName() Obtains the name of this ProcedureLine. |
OdiProcedureLineCmd |
getOnSourceCommand() Obtains the OdiProcedureLineCmd object that defines the command to be applied on a source connection. |
OdiProcedureLineCmd |
getOnTargetCommand() Obtains the OdiProcedureLineCmd object that defines the command to be applied on a source connection. |
int |
getOrder() Obtains the execution order of this OdiProcedureLine within the list of OdiProcedureLines that belong to an OdiProcedure. |
IRepositoryEntity |
getSecurityContainer() Define a generic way to retrieve container for entities. |
boolean |
isAlwaysGenerated() Return whether this ProcedureLine is always generated into execution tasks, without any condition, or not. |
boolean |
isIgnoreError() Is ignore error? |
void |
removeGenerationCondition(ProcedureOption pOption) Removes the given ProcedureOption to the collection options that controls whether this OdiProcedureLine will be generated, or not. |
void |
setAlwaysGenerated(boolean pAlwaysGenerated) Defines whether this ProcedureLine is always generated into execution tasks. |
void |
setIgnoreError(boolean ignoreError) Defines whether this ProcedureLine should ignore error when executed, or not. If set to true, when an error occurs during exection, the line will go into Warning instead of Error, and the OdiProcedure will not be stopped. |
void |
setLogCounter(OdiProcedureLine.LogCounter logCounter) Defines the LogCounter type for this ProcedureLine. |
void |
setLogLevel(int logLevel) Defines the log level that will be applied to this ProcedureLine when executed. |
void |
setName(java.lang.String pName) Defines the name of this ProcedureLine. |
void |
setOnSourceCommand(OdiProcedureLineCmd command) Defines the command to be applied on a source connection. |
void |
setOnTargetCommand(OdiProcedureLineCmd command) Defines the command to be applied on a target connection. |
Methods inherited from class oracle.odi.domain.support.BusinessObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NAME_MAX_LENGTH
Method Detail |
---|
public IRepositoryEntity getSecurityContainer()
IRepositoryEntity
public int getOrder()
OdiProcedure.moveLineAfter(OdiProcedureLine, OdiProcedureLine)
, OdiProcedure.moveLineBefore(OdiProcedureLine, OdiProcedureLine)
public void setLogCounter(OdiProcedureLine.LogCounter logCounter)
logCounter
- LogCounter type for this ProcedureLinejava.lang.IllegalArgumentException
- if given logCounter is null.getLogCounter()
public OdiProcedureLine.LogCounter getLogCounter()
setLogCounter(oracle.odi.domain.project.OdiProcedureLine.LogCounter)
public void setLogLevel(int logLevel)
logLevel
- int value representing the log level for this objectgetLogLevel()
public int getLogLevel()
setLogLevel(int)
public void setIgnoreError(boolean ignoreError)
ignoreError
- true to have this line ignore any errors during executionisIgnoreError()
public boolean isIgnoreError()
setIgnoreError(boolean)
public void setAlwaysGenerated(boolean pAlwaysGenerated)
pAlwaysGenerated
- true if this ProcedureLine should always be generated into execution tasksisAlwaysGenerated()
public boolean isAlwaysGenerated()
setAlwaysGenerated(boolean)
public void setName(java.lang.String pName)
pName
- name of OdiProcedureLinejava.lang.IllegalArgumentException
- if name is invalidgetName()
public java.lang.String getName()
setName(java.lang.String)
public java.util.Collection<ProcedureOption> getGenerationConditions()
public void addGenerationCondition(ProcedureOption pOption)
pOption
- ProcedureOption to addjava.lang.IllegalArgumentException
- if the given option is null, or does not belongs to the same OdiProcedure than this OdiProcedureLine.removeGenerationCondition(oracle.odi.domain.project.ProcedureOption)
public void removeGenerationCondition(ProcedureOption pOption)
pOption
- ProcedureOption to removejava.lang.IllegalArgumentException
- if the given option is null, or does not belongs to the same OdiProcedure than this OdiProcedureLine.addGenerationCondition(oracle.odi.domain.project.ProcedureOption)
public OdiProcedureLineCmd getOnSourceCommand()
Note: the returned OdiProcedureLineCmd is a copy of the actual OdiProcedureLineCmd instance. setOnSourceCommand must be called before any of the changes are applied.
This method will never return null.
setOnSourceCommand(oracle.odi.domain.project.OdiProcedureLineCmd)
public void setOnSourceCommand(OdiProcedureLineCmd command)
command
- OdiProcedureLineCmd object to applygetOnSourceCommand()
public OdiProcedureLineCmd getOnTargetCommand()
Note: the returned OdiProcedureLineCmd is a copy of the actual OdiProcedureLineCmd instance. setOnTargetCommand should be called before any of the changes are applied.
This method will never return null.
setOnTargetCommand(oracle.odi.domain.project.OdiProcedureLineCmd)
public void setOnTargetCommand(OdiProcedureLineCmd command)
command
- OdiProcedureLineCmd object to applygetOnTargetCommand()
public java.io.Serializable getInternalId()
IRepositoryEntity
Typically a subclass will delegate to a public SomePrimitiveWrapper getId()
method. The necessity for the getInternalId()
abstract method is solely because the persistence layer needs a way of obtaining the identity irrespective of the actual identity implementation choice.
Returning null
from this method will indicate the object has never been saved. This will likely be relied on by some DAO
implementations.
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |