|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseConnect
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 aDatabaseURL)
Connects to the Database. |
void |
connect(java.lang.String aDatabaseURL,
Context aContext)
Connects to the Database. |
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 |
connect(java.lang.String aUser,
java.lang.String aPassword,
Context aContext)
Connects to the Database set in the DataSource definition, with user identification aUser and password aPassword. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Connects to the Database in the URL aDatabaseURL, with user identification aUser and password aPassword. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword,
Context aContext)
Connects to the Database in the URL aDatabaseURL, with user identification aUser and password aPassword. |
void |
disconnect()
Closes the Database connection. |
java.lang.String |
getDatabaseURL()
Returns the databaseURL attribute value. |
java.lang.String |
getDataSourceName()
Returns the dataSourceName attribute value. |
java.lang.String |
getPoolName()
Returns the poolName attribute value. |
java.lang.String |
getSharedConnection()
Returns the sharedConnection 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 |
setDatabaseURL(java.lang.String s)
Sets the databaseURL attribute to the string provided as an argument. |
void |
setDataSourceName(java.lang.String newDataSourceName)
Sets the dataSourceName attribute value to newDataSourceName. |
void |
setPoolName(java.lang.String newPoolName)
Sets the poolName attribute value to newPoolName. |
void |
setSharedConnection(java.lang.String newSharedConnection)
Sets the sharedConnection attribute value to newSharedConnection. |
void |
setWaitRetry(boolean newWaitRetry)
Sets the waitRetry attribute value to newWaitRetry. |
Method Detail |
---|
void connect(java.lang.String aDatabaseURL) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException, DSEObjectNotFoundException, DSEException
aDatabaseURL
- java.lang.String - the database URL
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 managervoid 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 managervoid connect(java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException, DSEObjectNotFoundException, DSEException
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 SQL Exception is caught
DSEObjectNotFoundException
- if the JDBCServicesConnectionManager cannot be found
DSEException
- if an exception is thrown when calling the pool of connections managervoid connect(java.lang.String aDatabaseURL, Context aContext) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException, DSEObjectNotFoundException, DSEException
aDatabaseURL
- java.lang.String - the database URLaContext
- com.ibm.dse.base.Context - the context where the JDBCServiceConnectionManager is defined
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 managervoid connect(java.lang.String aUser, java.lang.String aPassword, Context aContext) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException, DSEObjectNotFoundException, DSEException
aUser
- java.lang.String - the user identificationaPassword
- java.lang.String - the user passwordaContext
- com.ibm.dse.base.Context - the context where the JDBCServiceConnectionManager is defined
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 managervoid connect(java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword, Context aContext) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException, DSEObjectNotFoundException, DSEException
aDatabaseURL
- java.lang.String - the database URLaUser
- java.lang.String - the user identificationaPassword
- java.lang.String - the user passwordaContext
- com.ibm.dse.base.Context - the context where the JDBCServiceConnectionManager is defined
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 managervoid disconnect() throws DSESQLException, DSEException
DSESQLException
- if a SQL Exception occurs
DSEException
- if an exception is thrown when calling the pool of connections managerjava.lang.String getDatabaseURL()
java.lang.String getDataSourceName()
java.lang.String getPoolName()
java.lang.String getSharedConnection()
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
boolean isWaitRetry()
void setDatabaseURL(java.lang.String s)
s
- java.lang.Stringvoid setDataSourceName(java.lang.String newDataSourceName)
newDataSourceName
- java.lang.Stringvoid setPoolName(java.lang.String newPoolName)
newPoolName
- java.lang.Stringvoid setSharedConnection(java.lang.String newSharedConnection)
newSharedConnection
- java.lang.Stringvoid setWaitRetry(boolean newWaitRetry)
newWaitRetry
- boolean
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |