public class EmbeddedConnectionProvider extends Object implements ConnectionProvider
Constructor and Description |
---|
EmbeddedConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Tells the connection provider to destroy itself.
|
void |
finalize() |
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.
|
public boolean isPooled()
ConnectionProvider
isPooled
in interface ConnectionProvider
public Connection getConnection() throws SQLException
ConnectionProvider
getConnection
in interface ConnectionProvider
SQLException
- is an SQL error occured while retrieving the connection.public void start()
ConnectionProvider
start
in interface ConnectionProvider
public void restart()
ConnectionProvider
restart
in interface ConnectionProvider
public void destroy()
ConnectionProvider
destroy
in interface ConnectionProvider
Copyright © 2003-2008 Jive Software.