|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.6.0) E17060-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.odi.setup.support.WorkRepositorySetupImpl
public final class WorkRepositorySetupImpl
Default IWorkRepositorySetup
implementation.
Field Summary |
---|
Fields inherited from interface oracle.odi.setup.IWorkRepositorySetup |
---|
WORK_REPOSITORY_MAX_ID, WORK_REPOSITORY_PASSWORD_MAX_LENGTH |
Constructor Summary | |
---|---|
WorkRepositorySetupImpl(OdiInstance pOdiInstance) Creates a new WorkRepositorySetupImpl for the given @link OdiInstance . |
Method Summary | |
---|---|
void |
configureWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology) Configure default content of a given ODI work runtime repository. |
boolean |
createWorkDevRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, java.lang.String pWorkRepositoryPassword, TechnologyName pWorkTechnology, boolean pOverwrite) Create an ODI Work development repository into the database specified by the given parameters. |
boolean |
createWorkDevRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite) Create an ODI Work development repository into the database specified by the given parameters. |
boolean |
createWorkRepository(WorkRepository.WorkType pWorkType, JdbcProperties pWorkRepositoryJdbcProperties, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite, char[] pWorkRepositoryPassword) Create an ODI Work repository into the database schema specified by the JdbcProperties parameters. |
boolean |
createWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, java.lang.String pWorkRepositoryPassword, TechnologyName pWorkTechnology, boolean pOverwrite) Create an ODI Work runtime repository into the database specified by the given parameters. |
boolean |
createWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite) Create an ODI Work runtime repository into the database specified by the given parameters. |
boolean |
isRepIdAndRepNameAvailable(int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName) This method checks that the repository id and name are available. |
void |
upgradeWorkRepository(java.lang.String pWorkRepositoryName) Upgrade the work repository schema for the database specified by the given parameters. |
void |
upgradeWorkRepository(java.lang.String pWorkRepositoryName, JdbcProperties pWorkRepositoryNewJdbcProperties) Upgrade the work repository schema for the database specified by the given parameters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkRepositorySetupImpl(OdiInstance pOdiInstance)
OdiInstance
.
pOdiInstance
- the OdiInstance connected to a master repository.Method Detail |
---|
public boolean createWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite) throws RepositorySetupException
IWorkRepositorySetup
This method will create work repository schema for runtime with the specified ODI work repository name and without any password.
createWorkRuntimeRepository
in interface IWorkRepositorySetup
pWorkUrl
- the url of the database where the work repository will be createdpWorkDriver
- the JDBC driver name of the databasepWorkUsername
- the username to connect to the databasepWorkPassword
- the password to connect to the databasepWorkRuntimeRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkTechnology
- the technology of the databasepOverwrite
- true
to override an existing repository, false
otherwise. Note that overwrite of a repository having a different version might fail. In this case please cleanup your database schema manually.true
if the repository has been created, and false
in case a previous repository was found but invoker had asked to not overwrite any existing repository.RepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filespublic void upgradeWorkRepository(java.lang.String pWorkRepositoryName) throws RepositorySetupException
IWorkRepositorySetup
In order to upgrade a work repository, caller of this method have to passe in an instance of ODI running only against an ODI Master repository.
Following the work repository type (development or runtime) that method will upgrade the repository schema accordingly.
upgradeWorkRepository
in interface IWorkRepositorySetup
pWorkRepositoryName
- the name of the work repository to upgradeRepositorySetupException
- if failed to upgrade the work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filespublic void configureWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology) throws RepositorySetupException
IWorkRepositorySetup
That method will also add work repository information into parent master repository.
configureWorkRuntimeRepository
in interface IWorkRepositorySetup
pWorkUrl
- the url of the database where the work repository will be createdpWorkDriver
- the JDBC driver name of the databasepWorkUsername
- the username to connect to the databasepWorkPassword
- the password to connect to the databasepWorkRuntimeRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkTechnology
- the technology of the databaseRepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filespublic boolean createWorkDevRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite) throws RepositorySetupException
IWorkRepositorySetup
This method will create work repository schema for development with the specified ODI work repository name and without any password.
createWorkDevRepository
in interface IWorkRepositorySetup
pWorkUrl
- the url of the database where the work repository will be createdpWorkDriver
- the JDBC driver name of the databasepWorkUsername
- the username to connect to the databasepWorkPassword
- the password to connect to the databasepWorkDevRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkTechnology
- the technology of the databasepOverwrite
- true
to override an existing repository, false
otherwise. Note that overwrite of a repository having a different version might fail. In this case please cleanup your database schema manually.true
if the repository has been created, and false
in case a previous repository was found but invoker had asked to not overwrite any existing repository.RepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filespublic boolean createWorkDevRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, java.lang.String pWorkRepositoryPassword, TechnologyName pWorkTechnology, boolean pOverwrite) throws RepositorySetupException, PermissionDeniedException
IWorkRepositorySetup
This method will create work repository schema for development with the specified ODI work repository name and password.
createWorkDevRepository
in interface IWorkRepositorySetup
pWorkUrl
- the url of the database where the work repository will be createdpWorkDriver
- the JDBC driver name of the databasepWorkUsername
- the username to connect to the databasepWorkPassword
- the password to connect to the databasepWorkDevRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkRepositoryPassword
- the password of the work repositorypWorkTechnology
- the technology of the databasepOverwrite
- true
to override an existing repository, false
otherwise. Note that overwrite of a repository having a different version might fail. In this case please cleanup your database schema manually.true
if the repository has been created, and false
in case a previous repository was found but invoker had asked to not overwrite any existing repository.RepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filesPermissionDeniedException
public boolean createWorkRuntimeRepository(java.lang.String pWorkUrl, java.lang.String pWorkDriver, java.lang.String pWorkUsername, java.lang.String pWorkPassword, int pWorkRuntimeRepositoryId, java.lang.String pWorkRepositoryName, java.lang.String pWorkRepositoryPassword, TechnologyName pWorkTechnology, boolean pOverwrite) throws RepositorySetupException, PermissionDeniedException
IWorkRepositorySetup
This method will create work repository schema for runtime with the specified ODI work repository name and password.
createWorkRuntimeRepository
in interface IWorkRepositorySetup
pWorkUrl
- the url of the database where the work repository will be createdpWorkDriver
- the JDBC driver name of the databasepWorkUsername
- the username to connect to the databasepWorkPassword
- the password to connect to the databasepWorkRuntimeRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkRepositoryPassword
- the password of the work repositorypWorkTechnology
- the technology of the databasepOverwrite
- true
to override an existing repository, false
otherwise. Note that overwrite of a repository having a different version might fail. In this case please cleanup your database schema manually.true
if the repository has been created, and false
in case a previous repository was found but invoker had asked to not overwrite any existing repository.RepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filesPermissionDeniedException
public void upgradeWorkRepository(java.lang.String pWorkRepositoryName, JdbcProperties pWorkRepositoryNewJdbcProperties) throws RepositorySetupException, PermissionDeniedException
IWorkRepositorySetup
In order to upgrade a work repository, caller of this method have to passe in an instance of ODI running only against an ODI Master repository.
Following the work repository type (development or runtime) that method will upgrade the repository schema accordingly.
upgradeWorkRepository
in interface IWorkRepositorySetup
pWorkRepositoryName
- the name of the work repository to upgradepWorkRepositoryNewJdbcProperties
- The new location of the work repository (this can be usefull if it's different from the location defined in the master repository). If null the location currently in the master repostiory will be kept.RepositorySetupException
- if failed to upgrade the work repositoryRepositoryScriptsNotFoundException
- if failed to find the script filesPermissionDeniedException
public boolean isRepIdAndRepNameAvailable(int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName) throws RepositorySetupException
IWorkRepositorySetup
isRepIdAndRepNameAvailable
in interface IWorkRepositorySetup
pWorkDevRepositoryId
- the ID of the repositorypWorkRepositoryName
- the logical name of the work repositoryRepositorySetupException
public boolean createWorkRepository(WorkRepository.WorkType pWorkType, JdbcProperties pWorkRepositoryJdbcProperties, int pWorkDevRepositoryId, java.lang.String pWorkRepositoryName, TechnologyName pWorkTechnology, boolean pOverwrite, char[] pWorkRepositoryPassword) throws RepositorySetupException
IWorkRepositorySetup
JdbcProperties
parameters.
This method will create work repository with the specified ODI work repository name and without any password.
createWorkRepository
in interface IWorkRepositorySetup
pWorkType
- the type of repository that will be createdpWorkRepositoryJdbcProperties
- the jdbc properties of the database where the work repository will be created.pWorkDevRepositoryId
- the ID of the repository that will be createdpWorkRepositoryName
- the logical name of the work repositorypWorkTechnology
- the technology of the databasepOverwrite
- true
to override an existing repository, false
otherwise. Note that overwrite of a repository having a different version might fail. In this case please cleanup your database schema manually.pWorkRepositoryPassword
- the work repository password that will be prompted if the created repository is attached later to another master. If null value is passed in no password check will be done at attachment.true
if the repository has been created, and false
in case a previous repository was found but invoker had asked to not overwrite any existing repository.RepositorySetupException
- if failed to create that work repositoryRepositoryScriptsNotFoundException
- if failed to find the script files
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.6.0) E17060-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |