Début d'implémentation d'un ORM pour les données des joueurs
This commit is contained in:
@@ -2,9 +2,7 @@ package net.mc_pandacraft.java.util.mysql;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
@@ -26,7 +24,7 @@ public class DBConnection {
|
||||
}
|
||||
|
||||
|
||||
public void reconnect() throws SQLException
|
||||
public void reconnectIfNecessary() throws SQLException
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -38,17 +36,6 @@ public class DBConnection {
|
||||
}
|
||||
}
|
||||
|
||||
public Statement createStatement() throws SQLException
|
||||
{
|
||||
return conn.createStatement();
|
||||
}
|
||||
|
||||
public PreparedStatement prepareStatement(String sql) throws SQLException
|
||||
{
|
||||
return conn.prepareStatement(sql);
|
||||
}
|
||||
|
||||
|
||||
public Connection getConnection()
|
||||
{
|
||||
return conn;
|
||||
|
Reference in New Issue
Block a user