Class MySQLConnector

java.lang.Object
dev.esophose.playerparticles.database.MySQLConnector
All Implemented Interfaces:
DatabaseConnector

public class MySQLConnector
extends java.lang.Object
implements DatabaseConnector
  • Nested Class Summary

    Nested classes/interfaces inherited from interface dev.esophose.playerparticles.database.DatabaseConnector

    DatabaseConnector.ConnectionCallback
  • Constructor Summary

    Constructors 
    Constructor Description
    MySQLConnector​(org.bukkit.plugin.Plugin plugin, java.lang.String hostname, int port, java.lang.String database, java.lang.String username, java.lang.String password, boolean useSSL)  
  • Method Summary

    Modifier and Type Method Description
    void closeConnection()
    Closes all open connections to the database
    void connect​(DatabaseConnector.ConnectionCallback callback)
    Executes a callback with a Connection passed and automatically closes it when finished
    boolean isInitialized()
    Checks if the connection to the database has been created

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait