Class CoreEstablishSQLite
- java.lang.Object
-
- com.playernguyen.playernguyencore.sql.CoreEstablishSQLite
-
- All Implemented Interfaces:
ICoreEstablish
public class CoreEstablishSQLite extends java.lang.Object implements ICoreEstablish
-
-
Constructor Summary
Constructors Constructor Description CoreEstablishSQLite(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull java.io.File file)
CoreEstablishSQLite(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull java.lang.String name)
-
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
-
CoreEstablishSQLite
public CoreEstablishSQLite(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull java.io.File file) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
CoreEstablishSQLite
public CoreEstablishSQLite(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull java.lang.String name) 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
-
-