Package at.hugob.plugin.library.database
Class MySQLDatabase<T extends org.bukkit.plugin.java.JavaPlugin>
java.lang.Object
at.hugob.plugin.library.database.AbstractDatabase<T>
at.hugob.plugin.library.database.MySQLDatabase<T>
public abstract class MySQLDatabase<T extends org.bukkit.plugin.java.JavaPlugin>
extends AbstractDatabase<T>
An implementation of the AbstractDatabase to handle MySQL Databases
-
Field Summary
Fields inherited from class at.hugob.plugin.library.database.AbstractDatabase
plugin, tablePrefix -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class at.hugob.plugin.library.database.AbstractDatabase
createTables, getConnection
-
Constructor Details
-
MySQLDatabase
public MySQLDatabase(@NotNull T plugin, @NotNull @NotNull String user, @NotNull @NotNull String password, @NotNull @NotNull String database, @NotNull @NotNull String ip, int port, @NotNull @NotNull String tablePrefix) Instantiates a new MySQL Database connection- Parameters:
plugin- the plugin that instantiates this database connectionuser- the username from the database loginpassword- the password from the database logindatabase- the database nameip- the ip that points to the databaseport- the port that points to the databasetablePrefix- the prefix for tables that are created in the database
-