
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, waitcreateTables, getDbType, limitRequest, needUpgradeDb, nextSequence, resetSequence, upgradeDbpublic 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 DbModelprotected final void closeInternalConnection(DbSession dbSession)
dbSession - public final void validConnection(DbSession dbSession) throws WaarpDatabaseNoConnectionException
DbModelvalidConnection in interface DbModelWaarpDatabaseNoConnectionExceptionprotected 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 DbModelSQLExceptionpublic void releaseResources()
DbModelreleaseResources in interface DbModelpublic int currentNumberOfPooledConnections()
currentNumberOfPooledConnections in interface DbModelCopyright © 2009–2022 Waarp. All rights reserved.