Skip navigation links

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

E17060-04


oracle.odi.domain.runtime.session
Class OdiSessionVariable

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.AbstractRepositoryEntity
          extended by oracle.odi.domain.runtime.session.OdiSessionVariable

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IRepositoryEntity

public class OdiSessionVariable
extends oracle.odi.domain.support.AbstractRepositoryEntity

Defines a variable inside an OdiSession and is part of the OdiSession - OdiSessionVariable - OdiSessionStepLog aggregate.

An OdiSessionVariable is created during session creation process. It contains the default value the session will use during its execution. However, this variable default value may be overridden with a startup parameter. It will be destroyed when the session it belongs is removed from runtime repository.

Since:
11.1.1.3.0
See Also:
Serialized Form

Method Summary
 Action getAction()
          Deprecated. As of ODI 11.1.1.5 this method is replaced by getValuePersistence()
 java.lang.Object getDefaultValue()
          Gets the default value of this variable.
 java.lang.String getDescription()
          Gets the description of this variable.
 java.io.Serializable getInternalId()
          Provides a common getter for the persistence layer to obtain an identity, irrespective of the actual type of identity used.
 java.lang.String getName()
          Gets the name of this variable.
 IRepositoryEntity getSecurityContainer()
          Define a generic way to retrieve container for entities.
 java.lang.Number getSessionId()
          Returns the ID of session associated with this OdiSessionVariable.
 VariableType getType()
          Gets the type of this variable.
 ValuePersistence getValuePersistence()
          Returns the values persistence strategy for this OdiSessionVariable.
 void setDefaultValue(java.lang.Object pValue)
          Set the default value.

 

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

 

Method Detail

getName

public java.lang.String getName()
Gets the name of this variable.
Returns:
the name of this variable

getDefaultValue

public java.lang.Object getDefaultValue()
Gets the default value of this variable.
Returns:
the default value of this variable
See Also:
getType(), setDefaultValue(Object)

setDefaultValue

public void setDefaultValue(java.lang.Object pValue)
Set the default value.

Given value type must be consistent with this variable type.

Parameters:
pValue - an object value
Throws:
DomainRuntimeException - if given object type is inconsistent
Since:
11.1.1.5.0
See Also:
getType(), getDefaultValue()

getType

public VariableType getType()
Gets the type of this variable.
Returns:
the type of this variable

getAction

@Deprecated
public Action getAction()
Deprecated. As of ODI 11.1.1.5 this method is replaced by getValuePersistence()
Returns Action of this variable.
Returns:
Action of this variable

getValuePersistence

public ValuePersistence getValuePersistence()
Returns the values persistence strategy for this OdiSessionVariable.
Returns:
a ValuePersistence

getInternalId

public java.io.Serializable getInternalId()
Description copied from interface: IRepositoryEntity
Provides a common getter for the persistence layer to obtain an identity, irrespective of the actual type of identity used.

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.

Returns:
the persistence identity of this instance

getSecurityContainer

public IRepositoryEntity getSecurityContainer()
Description copied from interface: IRepositoryEntity
Define a generic way to retrieve container for entities.
Returns:
container entity

getSessionId

public java.lang.Number getSessionId()
Returns the ID of session associated with this OdiSessionVariable.
Returns:
the session ID

getDescription

public java.lang.String getDescription()
Gets the description of this variable.
Returns:
the description of this variable

Skip navigation links

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

E17060-04


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