Package org.mariadb.jdbc
Class MySQLDataSource
java.lang.Object
org.mariadb.jdbc.MariaDbDataSource
org.mariadb.jdbc.MySQLDataSource
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,ConnectionPoolDataSource
,DataSource
,XADataSource
Deprecated.
use class MariaDbDataSource directly
Keep the class name for compatibility
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.MySQLDataSource
(String url) Deprecated.MySQLDataSource
(String hostname, int port, String database) Deprecated.Constructor. -
Method Summary
Methods inherited from class org.mariadb.jdbc.MariaDbDataSource
getConnection, getConnection, getDatabaseName, getLoginTimeout, getLogWriter, getParentLogger, getPooledConnection, getPooledConnection, getPort, getPortNumber, getServerName, getUrlParser, getUser, getUserName, getXAConnection, getXAConnection, initialize, isWrapperFor, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setPort, setPortNumber, setProperties, setServerName, setUrl, setUser, setUserName, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
Methods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder
-
Constructor Details
-
MySQLDataSource
Deprecated.Constructor.- Parameters:
hostname
- hostname (ipv4, ipv6, dns name)port
- server portdatabase
- database name
-
MySQLDataSource
Deprecated. -
MySQLDataSource
public MySQLDataSource()Deprecated.Default constructor. hostname will be localhost, port 3306.
-