public interface ConnectionProvider
It is expected that each subclass be a JavaBean, so that properties of the connection provider are exposed through bean introspection.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Tells the connection provider to destroy itself.
|
Connection |
getConnection()
Returns a database connection.
|
boolean |
isPooled()
Returns true if this connection provider provides connections out
of a connection pool.
|
void |
restart()
This method should be called whenever properties have been changed so
that the changes will take effect.
|
void |
start()
Starts the connection provider.
|
boolean isPooled()
Connection getConnection() throws SQLException
SQLException
- is an SQL error occured while retrieving the connection.void start()
void restart()
void destroy()
Copyright © 2003-2008 Jive Software.