|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.3.0) E17060-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.odi.core.repository.Repository
public abstract class Repository
Abstract superclass representing an ODI repository.
A Repository
provides various technical informations about a
repository, that might be required by other services implementations. It is especially
providing method getDataSource()
that is basically allowing for JDBC access to
that repository.
Known subclasses are MasterRepository
and WorkRepository
.
This class isn't intent to be sub-classed by application code.
MasterRepository
,
WorkRepository
Method Summary | |
---|---|
javax.sql.DataSource |
getDataSource()
Obtains JDBC DataSource pointing to this repository. |
com.sunopsis.dwg.dbobj.SnpConnect |
getLegacyConnectionDef()
INTERNAL: Returns an handle on the legacy connection definition for this repository. |
static MasterRepository |
getMasterRepository(javax.sql.DataSource pDataSource)
Gets a MasterRepository instance. |
java.lang.String |
getName()
Obtains the name of this repository. |
int |
getShortId()
Obtain the short id of this repository. |
java.lang.String |
getTechnologyCode()
Obtains internal ODI technology code (aka dialect) for this repository. |
static WorkRepository |
getWorkRepository(MasterRepository pMasterRepository,
javax.sql.DataSource pDataSource)
Gets a WorkRepository instance. |
long |
ping()
Return the time needed to execute a very simple query on the repository. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public javax.sql.DataSource getDataSource()
Note: this DataSource isn't managed by ODI persistence management. Don't use this DataSource to implement transactional data access code.
DataSource
to this repositorypublic com.sunopsis.dwg.dbobj.SnpConnect getLegacyConnectionDef()
public static MasterRepository getMasterRepository(javax.sql.DataSource pDataSource) throws OdiConfigurationException
pDataSource
- JDBC DataSource of an ODI master repository
MasterRepository
object
OdiConfigurationException
- when the DataSource provided does not match a valid ODI master repository.
MasterRepositoryResourceFailureException
- if no connection can be obtained from given DataSource
MasterRepositoryVersionMismatchException
- if given repository's DataSource doesn't match required
version
IllegalMasterRepositoryStatusException
- in case of illegal repository status
NotMasterRepositorySchemaException
- if given DataSource schema does not correspond to a master
repositorypublic java.lang.String getName()
public int getShortId()
int
public java.lang.String getTechnologyCode()
public static WorkRepository getWorkRepository(MasterRepository pMasterRepository, javax.sql.DataSource pDataSource) throws OdiConfigurationException
pMasterRepository
- master repositorypDataSource
- JDBC DataSource of an ODI work repository
WorkRepository
object
OdiConfigurationException
- when the DataSource provided does not match a valid ODI work repository.
WorkRepositoryResourceFailureException
- if no connection can be obtained from given DataSource
WorkRepositoryVersionMismatchException
- if given repository's DataSource doesn't match required
version
IllegalWorkRepositoryStatusException
- in case of illegal repository status
NotWorkRepositorySchemaException
- if given DataSource schema does not correspond to a work
repository
oracle.odi.core.repository.RepositoriesNotBoundException
- if given master and wor repositories are not bound according
ODI repositories topologypublic long ping() throws org.springframework.dao.DataAccessResourceFailureException
org.springframework.dao.DataAccessResourceFailureException
- in case of repository access failure.
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.3.0) E17060-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |