
public abstract class DbModelMysql extends DbModelCommonMariadbMySql
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DbModelMysql.DbTypeResolverMySQL |
DbModelCommonMariadbMySql.DBTypeDbModelAbstract.DbTypeResolver| Modifier and Type | Field and Description |
|---|---|
protected com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource |
mysqlConnectionPoolDataSource |
protected DbConnectionPool |
pool |
dbTypeResolver| 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, validConnectionStringcloseInternalConnection, getDbTypeResolver, validConnection, validConnectionSelectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTables, needUpgradeDb, upgradeDbprotected com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource mysqlConnectionPoolDataSource
protected DbConnectionPool pool
protected DbModelMysql(String dbserver, String dbuser, String dbpasswd, Timer timer, long delay) throws WaarpDatabaseNoConnectionException
dbserver - dbuser - dbpasswd - timer - delay - WaarpDatabaseNoConnectionExceptionprotected DbModelMysql(String dbserver, String dbuser, String dbpasswd) throws WaarpDatabaseNoConnectionException
dbserver - dbuser - dbpasswd - WaarpDatabaseNoConnectionExceptionprotected DbModelMysql()
throws WaarpDatabaseNoConnectionException
public DbType getDbType()
public void releaseResources()
DbModelreleaseResources in interface DbModelreleaseResources in class DbModelAbstractpublic int currentNumberOfPooledConnections()
currentNumberOfPooledConnections in interface DbModelcurrentNumberOfPooledConnections in class DbModelAbstractpublic Connection getDbConnection(String server, String user, String passwd) throws SQLException
getDbConnection in interface DbModelgetDbConnection in class DbModelAbstractSQLExceptionCopyright © 2009–2020 Waarp. All rights reserved.