public abstract class AbstractDatabase extends Object implements Database
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDatabase()
Constructs the database.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDataSource()
This method must be called from the start method.
|
protected abstract void |
doStart()
To be implemented by subclasses to start the database.
|
protected abstract void |
doStop()
To be implemented by subclasses to stop the database.
|
int |
getActiveConnections()
Gets the number of active connections from the pool.
|
protected String |
getProperty(String aName) |
DataSource |
start()
Starts the database.
|
void |
stop()
Stops the database and tests for connection leaks.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExternalJdbcUrl, getJdbcUrl, getPassword, getUsernameprotected abstract void doStart()
protected abstract void doStop()
protected final void createDataSource()
public int getActiveConnections()
DatabasegetActiveConnections in interface Databasepublic final DataSource start()
public final void stop()
IGNORE_CONNECTION_LEAK_PROPERTY
is set then the connection leaks are not checked.Copyright © 2025. All rights reserved.