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

E17060-01

oracle.odi.setup.support
Class MasterRepositorySetupImpl

java.lang.Object
  extended by oracle.odi.setup.support.MasterRepositorySetupImpl
All Implemented Interfaces:
IMasterRepositorySetup

public final class MasterRepositorySetupImpl
extends java.lang.Object
implements IMasterRepositorySetup

Default IMasterRepositorySetup implementation.


Field Summary
 
Fields inherited from interface oracle.odi.setup.IMasterRepositorySetup
MASTER_REPOSITORY_MAX_ID
 
Constructor Summary
MasterRepositorySetupImpl()
           
 
Method Summary
 void configureMasterRepository(java.lang.String pMasterUrl, java.lang.String pMasterDriver, java.lang.String pMasterUsername, java.lang.String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, java.lang.String pDefaultSupervisorPass)
          Configure default content of a given ODI master repository.
 boolean createMasterRepository(java.lang.String pMasterUrl, java.lang.String pMasterDriver, java.lang.String pMasterUsername, java.lang.String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, boolean pOverwrite, AuthenticationConfiguration pAuthenticationConfiguration, PasswordStorageConfiguration pPasswordStorageConfiguration, IMassImportExportResource pMasterImportSource)
          Create an ODI master repository into the database specified by the given parameters.
 boolean createMasterRepository(java.lang.String pMasterUrl, java.lang.String pMasterDriver, java.lang.String pMasterUsername, java.lang.String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, boolean pOverwrite, java.lang.String pDefaultSupervisorPass)
          Calling this method is equivalent to call createMasterRepository(String pMasterUrl, String pMasterDriver, String pMasterUsername, String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, boolean pOverwrite, String pDefaultSupervisorPass, null, null) throws RepositorySetupException;
 boolean createMasterRepository(java.lang.String pMasterUrl, java.lang.String pMasterDriver, java.lang.String pMasterUsername, java.lang.String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, boolean pOverwrite, java.lang.String pDefaultSupervisorPass, PasswordStorageConfiguration pPasswordStorageConfiguration, IMassImportExportResource pMasterImportSource)
          Create an ODI master repository into the database specified by the given parameters.
 void upgradeMasterRepository(java.lang.String pMasterUrl, java.lang.String pMasterDriver, java.lang.String pMasterUsername, java.lang.String pMasterPassword, TechnologyName pMasterTechnology)
          Upgrade the master 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

MasterRepositorySetupImpl

public MasterRepositorySetupImpl()
Method Detail

configureMasterRepository

public void configureMasterRepository(java.lang.String pMasterUrl,
                                      java.lang.String pMasterDriver,
                                      java.lang.String pMasterUsername,
                                      java.lang.String pMasterPassword,
                                      int pMasterRepositoryId,
                                      TechnologyName pMasterTechnology,
                                      java.lang.String pDefaultSupervisorPass)
                               throws RepositorySetupException
Description copied from interface: IMasterRepositorySetup
Configure default content of a given ODI master repository.

Specified by:
configureMasterRepository in interface IMasterRepositorySetup
Parameters:
pMasterUrl - the url of the database where the master repository will be created
pMasterDriver - the JDBC driver name of the database
pMasterUsername - the username to connect to the database
pMasterPassword - the password to connect to the database
pMasterRepositoryId - the ID of the repository that will be created
pMasterTechnology - the technology of the database
pDefaultSupervisorPass - password of the SUPERVISOR user that is created by default. If pDefaultSupervisorPass is null, then the default password will be SUNOPSIS.
Throws:
RepositorySetupException - if failed to create that Master Repository
RepositoryScriptsNotFoundException - if the script files can't be found

createMasterRepository

public boolean createMasterRepository(java.lang.String pMasterUrl,
                                      java.lang.String pMasterDriver,
                                      java.lang.String pMasterUsername,
                                      java.lang.String pMasterPassword,
                                      int pMasterRepositoryId,
                                      TechnologyName pMasterTechnology,
                                      boolean pOverwrite,
                                      AuthenticationConfiguration pAuthenticationConfiguration,
                                      PasswordStorageConfiguration pPasswordStorageConfiguration,
                                      IMassImportExportResource pMasterImportSource)
                               throws RepositorySetupException
Description copied from interface: IMasterRepositorySetup
Create an ODI master repository into the database specified by the given parameters.

This method will create the tables for master repository in the database schema, and will initialize internal master repository configuration. According to the type of pAuthenticationConfiguration parameter it will also

That method return 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.

Specified by:
createMasterRepository in interface IMasterRepositorySetup
Parameters:
pMasterUrl - the url of the database where the master repository will be created
pMasterDriver - the JDBC driver name of the database
pMasterUsername - the username to connect to the database
pMasterPassword - the password to connect to the database
pMasterRepositoryId - the ID of the repository that will be created
pMasterTechnology - the technology of the database
pOverwrite - 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.
pAuthenticationConfiguration - the authentication configuration
pPasswordStorageConfiguration - the PasswordStorageConfiguration to use for this repository. If this parameter is null the one defined in the specified pMasterImportSource if any will be used otherwise the PasswordStorageConfiguration.InternalPasswordStorageConfiguration will be used.
pMasterImportSource - the location of master repository configuration to use. If this parameter is null the default configuration shipped with the product will be used.
Returns:
true if the repository has been created, false otherwise
Throws:
RepositorySetupException - if failed to create that Master Repository
RepositoryScriptsNotFoundException - if the script files can't be found

createMasterRepository

public boolean createMasterRepository(java.lang.String pMasterUrl,
                                      java.lang.String pMasterDriver,
                                      java.lang.String pMasterUsername,
                                      java.lang.String pMasterPassword,
                                      int pMasterRepositoryId,
                                      TechnologyName pMasterTechnology,
                                      boolean pOverwrite,
                                      java.lang.String pDefaultSupervisorPass)
                               throws RepositorySetupException
Description copied from interface: IMasterRepositorySetup
Calling this method is equivalent to call createMasterRepository(String pMasterUrl, String pMasterDriver, String pMasterUsername, String pMasterPassword, int pMasterRepositoryId, TechnologyName pMasterTechnology, boolean pOverwrite, String pDefaultSupervisorPass, null, null) throws RepositorySetupException;

Specified by:
createMasterRepository in interface IMasterRepositorySetup
Parameters:
pMasterUrl - the url of the database where the master repository will be created
pMasterDriver - the JDBC driver name of the database
pMasterUsername - the username to connect to the database
pMasterPassword - the password to connect to the database
pMasterRepositoryId - the ID of the repository that will be created
pMasterTechnology - the technology of the database
pOverwrite - 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.
pDefaultSupervisorPass - password of the SUPERVISOR user that is created by default. If pDefaultSupervisorPass is null, then the default password will be SUNOPSIS.
Returns:
true if the repository has been created, false otherwise
Throws:
RepositorySetupException - if failed to create that Master Repository
RepositoryScriptsNotFoundException - if the script files can't be found

createMasterRepository

public boolean createMasterRepository(java.lang.String pMasterUrl,
                                      java.lang.String pMasterDriver,
                                      java.lang.String pMasterUsername,
                                      java.lang.String pMasterPassword,
                                      int pMasterRepositoryId,
                                      TechnologyName pMasterTechnology,
                                      boolean pOverwrite,
                                      java.lang.String pDefaultSupervisorPass,
                                      PasswordStorageConfiguration pPasswordStorageConfiguration,
                                      IMassImportExportResource pMasterImportSource)
                               throws RepositorySetupException,
                                      org.springframework.jdbc.CannotGetJdbcConnectionException
Description copied from interface: IMasterRepositorySetup
Create an ODI master repository into the database specified by the given parameters.

This method will create the tables for master repository in the database schema, and will initialize internal master repository configuration. It will also create a default ODI user with the name SUPERVISOR and with the given password. That ODI user is a supervisor user.

That method return 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.

Specified by:
createMasterRepository in interface IMasterRepositorySetup
Parameters:
pMasterUrl - the url of the database where the master repository will be created
pMasterDriver - the JDBC driver name of the database
pMasterUsername - the username to connect to the database
pMasterPassword - the password to connect to the database
pMasterRepositoryId - the ID of the repository that will be created
pMasterTechnology - the technology of the database
pOverwrite - 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.
pDefaultSupervisorPass - password of the SUPERVISOR user that is created by default. If pDefaultSupervisorPass is null, then the default password will be SUNOPSIS.
pPasswordStorageConfiguration - the PasswordStorageConfiguration to use for this repository. If this parameter is null the one defined in the specified pMasterImportSource if any will be used otherwise the PasswordStorageConfiguration.InternalPasswordStorageConfiguration will be used.
pMasterImportSource - the location of master repository configuration to use. If this parameter is null the default configuration shipped with the product will be used.
Returns:
true if the repository has been created, false otherwise
Throws:
RepositorySetupException - if failed to create that Master Repository
RepositoryScriptsNotFoundException - if the script files can't be found
org.springframework.jdbc.CannotGetJdbcConnectionException

upgradeMasterRepository

public void upgradeMasterRepository(java.lang.String pMasterUrl,
                                    java.lang.String pMasterDriver,
                                    java.lang.String pMasterUsername,
                                    java.lang.String pMasterPassword,
                                    TechnologyName pMasterTechnology)
                             throws RepositorySetupException
Description copied from interface: IMasterRepositorySetup
Upgrade the master repository schema for the database specified by the given parameters.

Specified by:
upgradeMasterRepository in interface IMasterRepositorySetup
Parameters:
pMasterUrl - the url of the database where the master repository will be created
pMasterDriver - the JDBC driver name of the database
pMasterUsername - the username to connect to the database
pMasterPassword - the password to connect to the database
pMasterTechnology - the technology of the database
Throws:
RepositorySetupException - if failed to upgrade the given repository
RepositoryScriptsNotFoundException - if the script files can't be found

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.