Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

oracle.owb.connection
Interface OWBConnection


public interface OWBConnection

Represents a connection to OWB Repository.


Method Summary
 void commit()
          Commits the current global transaction.
 java.lang.String getConnectString()
          Returns the connect string (in the form "host:port:SID").
 int getMode()
          Returns the connection mode.
 java.lang.String getRepositoryVersion()
          Returns the repository version value.
 java.lang.String getUserName()
          Returns the connected user name.
 boolean isCommitRequired()
          Tests whether there are metadata changes done in the current global transaction, which have not been committed yet.
 void rollback()
          Aborts the current global transaction.
 void switchMode(int connectionMode)
          Switch the connection mode.

 

Method Detail

getUserName

public java.lang.String getUserName()
Returns the connected user name.
Returns:
a String representing the user name value

getConnectString

public java.lang.String getConnectString()
Returns the connect string (in the form "host:port:SID").
Returns:
a String representing the connect string value

getRepositoryVersion

public java.lang.String getRepositoryVersion()
Returns the repository version value.
Returns:
OWB repository version

getMode

public int getMode()
Returns the connection mode.
Returns:
the conection mode as one of the constants defined in RepositoryManager

switchMode

public void switchMode(int connectionMode)
                throws CannotSwitchConnModeException
Switch the connection mode.
Parameters:
connectionMode - the mode to switch connection into; valid values are the constants defined in RepositoryManager
Throws:
CannotSwitchConnModeException - if the connection could not be switched to the desired mode

commit

public void commit()
Commits the current global transaction.

rollback

public void rollback()
Aborts the current global transaction.

isCommitRequired

public boolean isCommitRequired()
Tests whether there are metadata changes done in the current global transaction, which have not been committed yet.
Returns:
true if there are changes done by the current transaction, which need to be committed.

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.