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 |
static int |
MAX_BINARY
Max size in Binary mode, store in BASE64 mode (so x2)
|
static int |
MAX_KEY_VARCHAR
Max Key size in VARCHAR
|
static int |
MAX_LONGVARCHAR
Max size in LONGVARCHAR (except ORACLE = 4000)
|
static int |
MAX_VARCHAR
Max VARCHAR size (except ORACLE = 4000)
|
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
public static final int MAX_BINARY
public static final int MAX_LONGVARCHAR
public static final int MAX_KEY_VARCHAR
public static final int MAX_VARCHAR
protected static DbModelAbstract.DbTypeResolver dbTypeResolver
public DbModelAbstract.DbTypeResolver getDbTypeResolver()
getDbTypeResolver
in interface DbModel
protected final void closeInternalConnection(DbSession dbSession)
dbSession
- public final void validConnection(DbSession dbSession) throws WaarpDatabaseNoConnectionException
DbModel
validConnection
in interface DbModel
WaarpDatabaseNoConnectionException
protected final 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–2022 Waarp. All rights reserved.