Skip navigation links

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

E17060-04


oracle.odi.domain.topology
Class OdiPhysicalAgentDataSource

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.AbstractRepositoryEntity
          extended by oracle.odi.domain.support.AbstractOdiEntity
              extended by oracle.odi.domain.topology.OdiPhysicalAgentDataSource

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

public class OdiPhysicalAgentDataSource
extends oracle.odi.domain.support.AbstractOdiEntity
implements IMasterOdiEntity

OdiPhysicalAgentDataSource allows to override connection settings of an AbstractOdiDataServer with J2EE DataSource settings for an ODI agent deployed into a J2EE server.

Since:
11.1.1.3.0
See Also:
Serialized Form

Nested Class Summary
static class OdiPhysicalAgentDataSource.OdiPhysicalAgentDataSourceId
          Identifier class for OdiPhysicalAgentDataSource.

 

Field Summary

 

Fields inherited from class oracle.odi.domain.support.AbstractOdiEntity
STARTING_INTERNAL_VERSION

 

Constructor Summary
OdiPhysicalAgentDataSource(OdiPhysicalAgent pAgent, AbstractOdiDataServer pDataServer)
          Create a new OdiPhysicalAgentDataSource.

 

Method Summary
 AbstractOdiDataServer getDataServer()
          Obtains the data server related to this OdiPhysicalAgentDataSource.
 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 getJndiName()
          Obtains the JNDI name of the JDBC DataSource.
 OdiPhysicalAgent getPhysicalAgent()
          Obtains the physical agent related to this OdiPhysicalAgentDataSource.
 IRepositoryEntity getSecurityContainer()
          Define a generic way to retrieve container for entities.
 boolean isLookupUsingJndiEncPrefix()
          Returns whether the JNDI ENC prefix is enabled or not.
 void setJndiName(java.lang.String pJndiName)
          Define the JNDI name to be use to obtain a reference to the JDBC DataSource.
 void setLookupUsingJndiEncPrefix(boolean pLookupUsingJndiEncPrefix)
          Define whether the underlying data source should be looked up using the standard JNDI ENC prefix or not.

 

Methods inherited from class oracle.odi.domain.support.AbstractOdiEntity
equals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, getName, hashCode, isInstanceLevelSecurityNeeded, isNew, toString

 

Methods inherited from class oracle.odi.domain.support.BusinessObject
clone

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.odi.domain.IOdiEntity
getFirstDate, getFirstUser, getLastDate, getLastUser, getName, isInstanceLevelSecurityNeeded

 

Constructor Detail

OdiPhysicalAgentDataSource

public OdiPhysicalAgentDataSource(OdiPhysicalAgent pAgent,
                                  AbstractOdiDataServer pDataServer)
Create a new OdiPhysicalAgentDataSource.
Parameters:
pAgent - a physical agent
pDataServer - a data server

Method Detail

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.

Specified by:
getInternalId in interface IRepositoryEntity
Returns:
the persistence identity of this instance

setJndiName

public void setJndiName(java.lang.String pJndiName)
Define the JNDI name to be use to obtain a reference to the JDBC DataSource.
Parameters:
pJndiName - the JNDI name
Throws:
DomainRuntimeException - if the JNDI name is null or empty
See Also:
getJndiName()

getJndiName

public java.lang.String getJndiName()
Obtains the JNDI name of the JDBC DataSource.
Returns:
JNDI name
See Also:
setJndiName(String)

getDataServer

public AbstractOdiDataServer getDataServer()
Obtains the data server related to this OdiPhysicalAgentDataSource.
Returns:
an instance of AbstractOdiDataServer

getSecurityContainer

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

getPhysicalAgent

public OdiPhysicalAgent getPhysicalAgent()
Obtains the physical agent related to this OdiPhysicalAgentDataSource.
Returns:
an instance of OdiPhysicalAgent

isLookupUsingJndiEncPrefix

public boolean isLookupUsingJndiEncPrefix()
Returns whether the JNDI ENC prefix is enabled or not.
Returns:
true if enabled, false otherwise.

setLookupUsingJndiEncPrefix

public void setLookupUsingJndiEncPrefix(boolean pLookupUsingJndiEncPrefix)
Define whether the underlying data source should be looked up using the standard JNDI ENC prefix or not.

By default that property is set to true.

Parameters:
pLookupUsingJndiEncPrefix - true to use JNDI ENC naming, false otherwise

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.