|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DatabaseConnect interface provides the public abstract methods that are used to get a database connection and release the database connection by all database services.
Method Summary | |
---|---|
void |
connect(java.lang.String aUser,
java.lang.String aPassword)
Connects to the Database set in the DataSource definition, with user identification aUser and password aPassword. |
void |
disconnect()
Closes the Database connection. |
java.lang.String |
getDataSourceName()
Returns the dataSourceName attribute value. |
boolean |
isConnected()
Returns true if there is a connection to the database or false if there is not. |
boolean |
isWaitRetry()
Returns the waitRetry attribute value. |
void |
setDataSourceName(java.lang.String newDataSourceName)
Sets the dataSourceName attribute value to newDataSourceName. |
void |
setWaitRetry(boolean newWaitRetry)
Sets the waitRetry attribute value to newWaitRetry. |
Method Detail |
public void connect(java.lang.String aUser, java.lang.String aPassword) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException, DSEObjectNotFoundException, DSEException
aUser
- 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 SQL Exception is caught
DSEObjectNotFoundException
- if the JDBCServicesConnectionManager cannot be found
DSEException
- if an exception is thrown when calling the pool of connections managerpublic void disconnect() throws DSESQLException, DSEException
DSESQLException
- if a SQL Exception occurs
DSEException
- if an exception is thrown when calling the pool of connections managerpublic java.lang.String getDataSourceName() throws DSEException
DSEException
public boolean isConnected() throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException, DSEObjectNotFoundException, DSEException
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSEObjectNotFoundException
DSEException
public boolean isWaitRetry() throws DSEException
DSEException
public void setDataSourceName(java.lang.String newDataSourceName) throws DSEException
newDataSourceName
- java.lang.String
DSEException
public void setWaitRetry(boolean newWaitRetry) throws DSEException
newWaitRetry
- boolean
DSEException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |