|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
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, com.sunopsis.dwg.dbobj.SnpConnect pWorkSnpConnect, com.sunopsis.dwg.dbobj.SnpRemRep pWorkRemRep) INTERNAL: 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 static MasterRepository getMasterRepository(javax.sql.DataSource pDataSource) throws OdiConfigurationException
pDataSource
- JDBC DataSource of an ODI master repositoryMasterRepository
objectOdiConfigurationException
- when the DataSource provided does not match a valid ODI master repository.MasterRepositoryResourceFailureException
- if no connection can be obtained from given DataSourceMasterRepositoryVersionMismatchException
- if given repository's DataSource doesn't match required versionIllegalMasterRepositoryStatusException
- in case of illegal repository statusNotMasterRepositorySchemaException
- if given DataSource schema does not correspond to a master repositorypublic static WorkRepository getWorkRepository(MasterRepository pMasterRepository, javax.sql.DataSource pDataSource, com.sunopsis.dwg.dbobj.SnpConnect pWorkSnpConnect, com.sunopsis.dwg.dbobj.SnpRemRep pWorkRemRep) throws OdiConfigurationException
pMasterRepository
- master repositorypDataSource
- JDBC DataSource of an ODI work repositorypWorkSnpConnect
-WorkRepository
objectOdiConfigurationException
- when the DataSource provided does not match a valid ODI work repository.WorkRepositoryResourceFailureException
- if no connection can be obtained from given DataSourceWorkRepositoryVersionMismatchException
- if given repository's DataSource doesn't match required versionIllegalWorkRepositoryStatusException
- in case of illegal repository statusNotWorkRepositorySchemaException
- if given DataSource schema does not correspond to a work repositoryRepositoriesNotBoundException
- if given master and wor repositories are not bound according ODI repositories topologypublic 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 java.lang.String getTechnologyCode()
public java.lang.String getName()
public com.sunopsis.dwg.dbobj.SnpConnect getLegacyConnectionDef()
public long ping() throws org.springframework.dao.DataAccessResourceFailureException
org.springframework.dao.DataAccessResourceFailureException
- in case of repository access failure.public int getShortId()
int
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |