public class Mysql extends Object
Constructor and Description |
---|
Mysql(BPConfig c,
Debug d,
String configsection) |
Modifier and Type | Method and Description |
---|---|
boolean |
addColumn(String table,
String column,
String type,
String after,
String value) |
void |
checkConnection() |
void |
close() |
static void |
close(AutoCloseable res) |
int |
columnExists(String table,
String column) |
void |
connect() |
boolean |
isConnected() |
ResultSet |
returnQuery(PreparedStatement stmt) |
boolean |
runQuery(PreparedStatement stmt) |
long |
runQueryGetId(PreparedStatement stmt) |
PreparedStatement |
stmt(String template) |
boolean |
tableExists(String table) |
public static void close(AutoCloseable res)
public void connect()
public void close()
public boolean isConnected()
public PreparedStatement stmt(String template)
public ResultSet returnQuery(PreparedStatement stmt)
public boolean runQuery(PreparedStatement stmt)
public long runQueryGetId(PreparedStatement stmt)
public boolean tableExists(String table)
public boolean addColumn(String table, String column, String type, String after, String value)
public void checkConnection()
Copyright © 2020. All rights reserved.