|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionProvider
Abstract class that defines the connection provider framework. Other classes extend this abstract class to make connection to actual data sources.
It is expected that each subclass be a JavaBean, so that properties of the connection provider are exposed through bean introspection.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean isPooled()
Connection getConnection() throws SQLException
SQLException
- is an SQL error occured while retrieving the connection.void start()
void restart()
void destroy()
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |