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

E17060-01

oracle.odi.core.config
Class WorkRepositoryDbInfo

java.lang.Object
  extended by oracle.odi.core.config.WorkRepositoryDbInfo

public class WorkRepositoryDbInfo
extends java.lang.Object

Holds Information about ODI work repository DB connectivity.

Work repository connectivity can be defined from an existing application managed DataSource using JNDI lookup, or using connectivity informations stored in ODI master repository. In the latest case, connectivity information is queried from ODI master repository using ODI name of the specified work repository. This connectivity information can be straight JDBC properties for local DataSource, as well as a JNDI name. Pooling attributes will only be applied to local DataSource.

Since:
11.1.1.3.0

Constructor Summary
WorkRepositoryDbInfo(java.lang.String pJndiName)
          WorkRepositoryDbInfo constructor that takes a JNDI data source name for repository connectivity.
WorkRepositoryDbInfo(java.lang.String pWorkName, PoolingAttributes pPoolingAttributes)
          WorkRepositoryDbInfo constructor that takes ODI work repository name for repository connectivity.
 
Method Summary
 java.lang.String getJndiName()
          Gets the JNDI name defined for this repository info.
 PoolingAttributes getPoolingAttributes()
          Return the pooling attributes defined for this repository info.
 java.lang.String getWorkName()
          Gets the work repository name.
 boolean isJndiRepositoryInfo()
          Return whether this repository info is a JNDI configuration, or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkRepositoryDbInfo

public WorkRepositoryDbInfo(java.lang.String pJndiName)
WorkRepositoryDbInfo constructor that takes a JNDI data source name for repository connectivity.

Parameters:
pJndiName - full JNDI name
Throws:
IllegalConfigurationArgumentException - if JNDI name is empty

WorkRepositoryDbInfo

public WorkRepositoryDbInfo(java.lang.String pWorkName,
                            PoolingAttributes pPoolingAttributes)
WorkRepositoryDbInfo constructor that takes ODI work repository name for repository connectivity.

Parameters:
pWorkName - work name
pPoolingAttributes - pooling attributes, or null if none.
Throws:
IllegalConfigurationArgumentException - if work repository name is empty
Method Detail

getJndiName

public java.lang.String getJndiName()
Gets the JNDI name defined for this repository info.

Returns:
the jndiName, or null if not defined
See Also:
isJndiRepositoryInfo(), getWorkName()

getPoolingAttributes

public PoolingAttributes getPoolingAttributes()
Return the pooling attributes defined for this repository info.

Returns:
the pooling attributes, or null if undefined

getWorkName

public java.lang.String getWorkName()
Gets the work repository name.

Returns:
the workName, or null if not defined
See Also:
isJndiRepositoryInfo(), getJndiName()

isJndiRepositoryInfo

public boolean isJndiRepositoryInfo()
Return whether this repository info is a JNDI configuration, or not.

Returns:
true if JNDI config, false otherwise

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.