Interface ICoreEstablish
-
- All Known Implementing Classes:
CoreEstablishMySQL
,CoreEstablishSQLite
public interface ICoreEstablish
Represent for SQL Establish class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.sql.Connection
openConnection()
Open the connect to SQLdefault boolean
testConnect(boolean stackTrace)
Test connection of this establish by making a dummy connect.
-
-
-
Method Detail
-
openConnection
java.sql.Connection openConnection() throws java.sql.SQLException
Open the connect to SQL- Returns:
- the SQL connection class (
Connection
) - Throws:
java.sql.SQLException
- When the SQL cannot connect by errors
-
testConnect
default boolean testConnect(boolean stackTrace)
Test connection of this establish by making a dummy connect.- Parameters:
stackTrace
- Print the stack trace- Returns:
- Whether can connect
-
-