|
|||||||||
| Home >> All >> org >> jdbf >> engine >> sql >> [ connection overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdbf.engine.sql.connection
Class ConnectionManager

java.lang.Objectorg.jdbf.engine.sql.connection.ConnectionManager
- All Implemented Interfaces:
- org.jdbf.engine.Configurable
- public class ConnectionManager
- extends java.lang.Object
- implements org.jdbf.engine.Configurable
- extends java.lang.Object
This class provides a repository for database connections.
| Field Summary | |
private java.util.Map |
conns
A list of the availabe connections. |
| Constructor Summary | |
ConnectionManager()
|
|
| Method Summary | |
void |
addConnection(java.lang.String name,
ConnectionSource connection)
Add a new ConnectionSource. |
protected void |
closeAllConnections()
Close all the connection |
protected void |
closeConnection(java.lang.String name)
Close the connection specified in name |
void |
createConnection(java.util.List dbs)
Returns a connection for the database. |
protected void |
destroy()
Destroy object |
protected void |
finalize()
Finalize object |
java.sql.Connection |
getConnection(java.lang.String nameConn)
Returns the connection specified in nameConn |
ConnectionSource |
getConnectionSource(java.lang.String nameConn)
Return the ConnectionSource object specified in nameConn |
void |
releaseConnection(java.lang.String name)
Release connection specified in conn |
void |
setConfiguration(org.jdbf.engine.configuration.Configuration conf)
Loads and creates database configurations from maps. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
conns
private java.util.Map conns
- A list of the availabe connections.
| Constructor Detail |
ConnectionManager
public ConnectionManager()
| Method Detail |
addConnection
public void addConnection(java.lang.String name, ConnectionSource connection)
- Add a new ConnectionSource.
createConnection
public void createConnection(java.util.List dbs) throws org.jdbf.engine.mapping.MappingException
- Returns a connection for the database. Name is
used as an index.
closeConnection
protected void closeConnection(java.lang.String name) throws org.jdbf.engine.mapping.MappingException, java.sql.SQLException
- Close the connection specified in name
closeAllConnections
protected void closeAllConnections()
throws org.jdbf.engine.mapping.MappingException,
java.sql.SQLException
- Close all the connection
destroy
protected void destroy()
throws java.lang.Exception
- Destroy object
finalize
protected void finalize()
throws java.lang.Throwable
- Finalize object
getConnection
public java.sql.Connection getConnection(java.lang.String nameConn) throws org.jdbf.engine.mapping.MappingException
- Returns the connection specified in nameConn
getConnectionSource
public ConnectionSource getConnectionSource(java.lang.String nameConn) throws org.jdbf.engine.mapping.MappingException
- Return the ConnectionSource object specified in nameConn
releaseConnection
public void releaseConnection(java.lang.String name) throws org.jdbf.engine.mapping.MappingException
- Release connection specified in conn
setConfiguration
public void setConfiguration(org.jdbf.engine.configuration.Configuration conf) throws org.jdbf.engine.mapping.MappingException
- Loads and creates database configurations from maps.
- Specified by:
setConfigurationin interfaceorg.jdbf.engine.Configurable
|
|||||||||
| Home >> All >> org >> jdbf >> engine >> sql >> [ connection overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jdbf.engine.sql.connection.ConnectionManager