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, wait
createTables, getDbType, limitRequest, needUpgradeDb, nextSequence, resetSequence, upgradeDb
protected static DbModelAbstract.DbTypeResolver dbTypeResolver
public DbModelAbstract.DbTypeResolver getDbTypeResolver()
getDbTypeResolver
in interface DbModel
protected void closeInternalConnection(DbSession dbSession)
dbSession
- public void validConnection(DbSession dbSession) throws WaarpDatabaseNoConnectionException
DbModel
validConnection
in interface DbModel
WaarpDatabaseNoConnectionException
protected void validConnectionSelect(DbSession dbSession) throws WaarpDatabaseNoConnectionException
protected abstract String validConnectionString()
public Connection getDbConnection(String server, String user, String passwd) throws SQLException
getDbConnection
in interface DbModel
SQLException
public void releaseResources()
DbModel
releaseResources
in interface DbModel
public int currentNumberOfPooledConnections()
currentNumberOfPooledConnections
in interface DbModel
Copyright © 2009–2020 Waarp. All rights reserved.