WorldSystem/src/main/java/de/butzlabben/world/util/database/DatabaseUtil.java

21 lines
489 B
Java
Raw Normal View History

2019-04-22 16:47:36 +02:00
package de.butzlabben.world.util.database;
2019-04-22 14:32:01 +02:00
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public interface DatabaseUtil {
ResultSet executeQuery(PreparedStatement preparedStatement) throws SQLException;
2019-08-10 15:31:30 +02:00
2019-04-22 14:32:01 +02:00
int executeUpdate(PreparedStatement preparedStatement) throws SQLException;
2019-08-10 15:31:30 +02:00
2019-04-22 14:32:01 +02:00
PreparedStatement prepareStatement(String sql) throws SQLException;
2019-08-10 15:31:30 +02:00
2019-04-22 14:32:01 +02:00
void close();
2019-08-10 15:31:30 +02:00
2019-04-22 14:32:01 +02:00
void connect();
2019-08-16 21:33:12 +02:00
boolean isConnectionAvailable();
2019-04-22 14:32:01 +02:00
}