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.| Modifier and Type | Class and Description |
|---|---|
static class |
OdiPhysicalAgentDataSource.OdiPhysicalAgentDataSourceId
Identifier class for
OdiPhysicalAgentDataSource. |
| Constructor and Description |
|---|
OdiPhysicalAgentDataSource(OdiPhysicalAgent pAgent,
AbstractOdiDataServer pDataServer)
Create a new
OdiPhysicalAgentDataSource. |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.
|
getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, getName, isInstanceLevelSecurityNeeded, isNew, preCommit, toStringequals, getBigNumericId, getGlobalId, getNumericId, getParent, hashCodegetFirstDate, getFirstUser, getLastDate, getLastUser, getName, isInstanceLevelSecurityNeededgetGlobalId, getParentpublic OdiPhysicalAgentDataSource(OdiPhysicalAgent pAgent, AbstractOdiDataServer pDataServer)
OdiPhysicalAgentDataSource.pAgent - a physical agentpDataServer - a data serverpublic 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.
getInternalId in interface IRepositoryEntitypublic void setJndiName(java.lang.String pJndiName)
pJndiName - the JNDI nameDomainRuntimeException - if the JNDI name is null or emptygetJndiName()public java.lang.String getJndiName()
setJndiName(String)public AbstractOdiDataServer getDataServer()
OdiPhysicalAgentDataSource.AbstractOdiDataServerpublic OdiPhysicalAgent getPhysicalAgent()
OdiPhysicalAgentDataSource.OdiPhysicalAgentpublic boolean isLookupUsingJndiEncPrefix()
true if enabled, false otherwise.public void setLookupUsingJndiEncPrefix(boolean pLookupUsingJndiEncPrefix)
By default that property is set to true.
pLookupUsingJndiEncPrefix - true to use JNDI ENC naming, false otherwise