public abstract class DbModelMysql extends DbModelCommonMariadbMySql
Modifier and Type | Class and Description |
---|---|
protected static class |
DbModelMysql.DbTypeResolverMySQL |
DbModelCommonMariadbMySql.DBType
DbModelAbstract.DbTypeResolver
Modifier and Type | Field and Description |
---|---|
static String |
MYSQL_DRIVER_JRE6 |
static String |
MYSQL_DRIVER_JRE8 |
protected ConnectionPoolDataSource |
mysqlConnectionPoolDataSource |
protected DbConnectionPool |
pool |
dbTypeResolver, MAX_BINARY, MAX_KEY_VARCHAR, MAX_LONGVARCHAR, MAX_VARCHAR
Modifier | Constructor and Description |
---|---|
protected |
DbModelMysql()
Create the object and initialize if necessary the driver
|
protected |
DbModelMysql(String dbserver,
String dbuser,
String dbpasswd)
Create the object and initialize if necessary the driver
|
protected |
DbModelMysql(String dbserver,
String dbuser,
String dbpasswd,
Timer timer,
long delay)
Create the object and initialize if necessary the driver
|
Modifier and Type | Method and Description |
---|---|
int |
currentNumberOfPooledConnections() |
Connection |
getDbConnection(String server,
String user,
String passwd) |
DbType |
getDbType() |
void |
releaseResources()
Release any internal resources if needed
|
limitRequest, nextSequence, resetSequence, validConnectionString
closeInternalConnection, getDbTypeResolver, validConnection, validConnectionSelect
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTables, needUpgradeDb, upgradeDb
public static final String MYSQL_DRIVER_JRE6
public static final String MYSQL_DRIVER_JRE8
protected ConnectionPoolDataSource mysqlConnectionPoolDataSource
protected DbConnectionPool pool
protected DbModelMysql(String dbserver, String dbuser, String dbpasswd, Timer timer, long delay) throws WaarpDatabaseNoConnectionException
dbserver
- dbuser
- dbpasswd
- timer
- delay
- WaarpDatabaseNoConnectionException
protected DbModelMysql(String dbserver, String dbuser, String dbpasswd) throws WaarpDatabaseNoConnectionException
dbserver
- dbuser
- dbpasswd
- WaarpDatabaseNoConnectionException
protected DbModelMysql() throws WaarpDatabaseNoConnectionException
public final DbType getDbType()
public final void releaseResources()
DbModel
releaseResources
in interface DbModel
releaseResources
in class DbModelAbstract
public int currentNumberOfPooledConnections()
currentNumberOfPooledConnections
in interface DbModel
currentNumberOfPooledConnections
in class DbModelAbstract
public final Connection getDbConnection(String server, String user, String passwd) throws SQLException
getDbConnection
in interface DbModel
getDbConnection
in class DbModelAbstract
SQLException
Copyright © 2009–2022 Waarp. All rights reserved.