
public abstract class DbModelAbstract extends Object implements DbModel
| Constructor and Description |
|---|
DbModelAbstract() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeInternalConnection(DbSession dbSession)
Internal use for closing connection while validating it
|
int |
currentNumberOfPooledConnections() |
Connection |
getDbConnection(String server,
String user,
String passwd) |
void |
releaseResources()
Release any internal resources if needed
|
void |
validConnection(DbSession dbSession)
Validate connection
|
protected void |
validConnectionSelect(DbSession dbSession) |
protected abstract String |
validConnectionString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTables, getDbType, limitRequest, needUpgradeDb, nextSequence, resetSequence, upgradeDbprotected void closeInternalConnection(DbSession dbSession)
dbSession - public void validConnection(DbSession dbSession) throws WaarpDatabaseNoConnectionException
DbModelvalidConnection in interface DbModelWaarpDatabaseNoConnectionExceptionprotected void validConnectionSelect(DbSession dbSession) throws WaarpDatabaseNoConnectionException
protected abstract String validConnectionString()
public Connection getDbConnection(String server, String user, String passwd) throws SQLException
getDbConnection in interface DbModelSQLExceptionpublic void releaseResources()
DbModelreleaseResources in interface DbModelpublic int currentNumberOfPooledConnections()
currentNumberOfPooledConnections in interface DbModelCopyright © 2009–2019 Waarp. All rights reserved.