|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.services.jdbcservicesinfra.JDBCServicesAdministrator
The JDBCServicesAdministrator class
Field Summary | |
---|---|
static java.lang.String |
COMPID
Keeps the component identification that will be used by the traces tool. |
static java.util.Hashtable |
connMgrPool
Keeps the connection to the database that will be used by the JDBCServicesAdministrator. |
static java.sql.Connection |
databaseConnection
Keeps the connection to the database that will be used by the JDBCServicesAdministrator. |
protected static java.lang.Object |
getSchemaSem
|
Constructor Summary | |
---|---|
JDBCServicesAdministrator()
* This constructor creates a JDBCServicesAdministrator object. |
Method Summary | |
---|---|
void |
connect(java.lang.String aDatabaseURL)
Connects to the database with the aDatabaseURL. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Connects to the database with the URL aDatabaseURL using aUser and aPassword. |
void |
disconnect()
Closes the Database connection. |
static void |
dropProcedure(java.lang.String aProcedureName)
Drops the stored procedure given by aProcedureName. |
static JDBCServicesConnectionManager |
getConnectionManager(java.lang.String connMgrName)
Get the connection manager from pool. |
static StoredProcMetaData |
getProcedureMetaData(java.lang.String procedureName)
Obtains the metadata of a specific procedure either from the storedProcsMetaData Hashtable (if it is already there) or from the database. |
protected static boolean |
isRegistered(java.lang.String aProcedureName)
Checks whether a stored procedure with a specific name is already registered in the database. |
protected static boolean |
isRegistered(java.lang.String schemaName,
java.lang.String procName)
Checks whether a stored procedure with a specific name is already registered in the database. |
static void |
registerProcedure(java.lang.String aStoredProcedure)
Registers a stored procedure given its SQL definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.sql.Connection databaseConnection
public static final java.lang.String COMPID
public static java.util.Hashtable connMgrPool
protected static java.lang.Object getSchemaSem
Constructor Detail |
public JDBCServicesAdministrator()
Method Detail |
public void connect(java.lang.String aDatabaseURL) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
aDatabaseURL
- java.lang.String - the database URL
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void connect(java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException
aDatabaseURL
- java.lang.String - the database URLaUser
- java.lang.String - the user identificationaPassword
- java.lang.String - the user password
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void disconnect() throws DSESQLException
DSESQLException
- if a SQLException occurspublic static void dropProcedure(java.lang.String aProcedureName) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException
aProcedureName
- java.lang.String
DSESQLException
- if an SQLException is caught
DSEInvalidRequestException
- if the procedure has not been registered in the database
DSEInternalErrorException
- if an internal error occurspublic static StoredProcMetaData getProcedureMetaData(java.lang.String procedureName) throws DSESQLException
procedureName
- java.lang.String
DSESQLException
protected static boolean isRegistered(java.lang.String aProcedureName) throws DSEInternalErrorException
aProcedureName
- java.lang.String
DSEInternalErrorException
protected static boolean isRegistered(java.lang.String schemaName, java.lang.String procName) throws DSEInternalErrorException
schemaName
- java.lang.StringprocName
- java.lang.String
DSEInternalErrorException
public static void registerProcedure(java.lang.String aStoredProcedure) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException
aStoredProcedure
- java.lang.String
DSESQLException
- if an SQLException is caught
DSEInvalidRequestException
- if a stored procedure with the same name is already registered in the database
DSEInternalErrorException
- if an internal program error occurspublic static JDBCServicesConnectionManager getConnectionManager(java.lang.String connMgrName) throws java.io.IOException
java.io.IOException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |