|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 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 |
public void connect(java.lang.String aDatabaseURL) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException, DSEObjectNotFoundException, DSEException
aDatabaseURL
- java.lang.String, the database URLpublic void 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 definedpublic 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 passwordpublic void 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 definedpublic void 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 passwordpublic void 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 definedpublic void disconnect() throws DSESQLException, DSEException
public java.lang.String getDatabaseURL()
public java.lang.String getDataSourceName()
public java.lang.String getPoolName()
public java.lang.String getSharedConnection()
public boolean isConnected() throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException, DSEObjectNotFoundException, DSEException
public boolean isWaitRetry()
public void setDatabaseURL(java.lang.String s)
s
- java.lang.Stringpublic void setDataSourceName(java.lang.String newDataSourceName)
newDataSourceName
- java.lang.Stringpublic void setPoolName(java.lang.String newPoolName)
newPoolName
- java.lang.Stringpublic void setSharedConnection(java.lang.String newSharedConnection)
newSharedConnection
- java.lang.Stringpublic void setWaitRetry(boolean newWaitRetry)
newWaitRetry
- boolean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |