|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.CmsSqlManager
public class CmsSqlManager
Superclass for all SQL manager implementations.
Constructor Summary | |
---|---|
protected |
CmsSqlManager()
Protected constructor to allow only subclassing. |
protected |
CmsSqlManager(CmsDriverManager driverManager)
Creates a new SQL manager from the provided driver manager. |
Method Summary | |
---|---|
int |
getActiveConnections(String dbPoolUrl)
Returns the number of active connections managed by a pool. |
Connection |
getConnection(String dbPoolName)
Returns a connection to the database using the given pool identified by its name. |
Connection |
getConnectionByUrl(String dbPoolUrl)
Returns a connection to the database using the given pool identified by its full url. |
List<String> |
getDbPoolUrls()
Returns a list of available database connection pool names. |
String |
getDefaultDbPoolName()
Returns the name of the default database connection pool. |
int |
getIdleConnections(String dbPoolUrl)
Returns the number of idle connections managed by a pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CmsSqlManager()
protected CmsSqlManager(CmsDriverManager driverManager)
driverManager
- the low level database driver managerMethod Detail |
---|
public int getActiveConnections(String dbPoolUrl) throws CmsDbException
dbPoolUrl
- the url of a pool
CmsDbException
- if something goes wrongpublic Connection getConnection(String dbPoolName) throws SQLException
dbPoolName
- the pool name
SQLException
- if something goes wrongpublic Connection getConnectionByUrl(String dbPoolUrl) throws SQLException
dbPoolUrl
- the pool url
SQLException
- if something goes wrongpublic List<String> getDbPoolUrls()
public String getDefaultDbPoolName()
public int getIdleConnections(String dbPoolUrl) throws CmsDbException
dbPoolUrl
- the url of a pool
CmsDbException
- if something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |