|
Oracle Warehouse Builder Java API Reference 10g Release 1 (10.1) B12155-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.owb.connection.RepositoryManager
Factory class for getting connections to OWB repository.
Field Summary | |
static int |
MULTIPLE_USER_MODE Used for the argument mode in method openConnection. |
protected static RepositoryManager |
s_instance Static variable holding the sole instance of of this class. |
static int |
SINGLE_USER_MODE Used for the argument mode in method openConnection. |
Constructor Summary | |
protected |
RepositoryManager() Protected constructor (for invocation by subclass constructors, typically implicit). |
Method Summary | |
void |
disconnect() Disconnects the current repository connection. |
OWBConnection |
getConnection() Returns the current connection to OWB repository. |
static RepositoryManager |
getInstance() Returns the sole instance of this class. |
boolean |
isConnected() Tests whether a connection to the repository currently exists. |
boolean |
isUserRepositoryOwner() Tests whether the current user is the repository owner. |
OWBConnection |
openConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString, int mode) Establishes a connection to OWB repository in multiple user mode so that there may have multiple session connected to the same repository. |
OWBConnection |
openConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString, int mode, java.lang.String repositoryName) Establishes a connection to OWB repository in multiple user mode so that there may have multiple session connected to the same repository. |
OWBConnection |
openSingleUserConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString) Establishes a connection to OWB repository in single user mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SINGLE_USER_MODE
public static final int MULTIPLE_USER_MODE
protected static RepositoryManager s_instance
Constructor Detail |
protected RepositoryManager()
Method Detail |
public static RepositoryManager getInstance()
public OWBConnection openSingleUserConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString) throws ConnectionFailureException
userName
- the user namepassword
- the passwordconnectString
- the connect string in the form "host:port:SID"ConnectionFailureException
- if the connection could not be establishedpublic OWBConnection openConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString, int mode) throws ConnectionFailureException
userName
- the user namepassword
- the passwordconnectString
- the connect string in the form "host:port:SID"mode
- either in SINGLE_USER_MODE or MULTIPLE_USER_MODEConnectionFailureException
- if the connection could not be establishedpublic OWBConnection openConnection(java.lang.String userName, java.lang.String password, java.lang.String connectString, int mode, java.lang.String repositoryName) throws ConnectionFailureException
userName
- the user namepassword
- the passwordconnectString
- the connect string in the form "host:port:SID"mode
- either in SINGLE_USER_MODE or MULTIPLE_USER_MODErepositoryName
- The repository name the user would like to use. Needed only if the login user is not a repository schemaConnectionFailureException
- if the connection could not be establishedpublic boolean isUserRepositoryOwner()
true
if the user is the repository ownerpublic OWBConnection getConnection()
null
if no connection to the repository is establishedpublic boolean isConnected()
true
if there is a connection to the repositorypublic void disconnect()
|
Oracle Warehouse Builder Java API Reference 10g Release 1 (10.1) B12155-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |