
public abstract class DbModelAbstract extends Object implements DbModel
| Modifier and Type | Class and Description |
|---|---|
static class |
DbModelAbstract.DbTypeResolver |
| Modifier and Type | Field and Description |
|---|---|
protected static DbModelAbstract.DbTypeResolver |
dbTypeResolver |
| 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) |
DbModelAbstract.DbTypeResolver |
getDbTypeResolver() |
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 static DbModelAbstract.DbTypeResolver dbTypeResolver
public DbModelAbstract.DbTypeResolver getDbTypeResolver()
getDbTypeResolver in interface DbModelprotected 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–2020 Waarp. All rights reserved.