Class CoreEstablishMySQL
- java.lang.Object
-
- com.playernguyen.playernguyencore.sql.CoreEstablishMySQL
-
- All Implemented Interfaces:
ICoreEstablish
public class CoreEstablishMySQL extends java.lang.Object implements ICoreEstablish
-
-
Constructor Summary
Constructors Constructor Description CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String database)
CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String port, java.lang.String database)
CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String port, java.lang.String database, java.lang.String params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
openConnection()
Open the connect to SQL-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.playernguyen.playernguyencore.sql.ICoreEstablish
testConnect
-
-
-
-
Constructor Detail
-
CoreEstablishMySQL
public CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String port, java.lang.String database, java.lang.String params) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
CoreEstablishMySQL
public CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String port, java.lang.String database) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
CoreEstablishMySQL
public CoreEstablishMySQL(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String database) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
-
Method Detail
-
openConnection
public java.sql.Connection openConnection() throws java.sql.SQLException
Description copied from interface:ICoreEstablish
Open the connect to SQL- Specified by:
openConnection
in interfaceICoreEstablish
- Returns:
- the SQL connection class (
Connection
) - Throws:
java.sql.SQLException
- When the SQL cannot connect by errors
-
-