public class Queries
extends java.lang.Object
Constructor and Description |
---|
Queries(boolean keepAlive) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeStatement(java.sql.PreparedStatement ps) |
void |
closeStatement(java.sql.PreparedStatement ps,
java.sql.ResultSet rs) |
int |
executeInsert(java.sql.PreparedStatement ps) |
int |
executeInsert(java.lang.String query) |
java.sql.ResultSet |
executeSelect(java.sql.PreparedStatement ps) |
java.sql.ResultSet |
executeSelect(java.lang.String query) |
int |
executeUpdate(java.sql.PreparedStatement ps) |
int |
executeUpdate(java.lang.String query) |
protected void |
finalize() |
static java.lang.String |
getConnectionString() |
static java.sql.Connection |
initConnection() |
void |
ping()
Runs a select statement to make sure we can still talk to the
database.
|
java.sql.PreparedStatement |
prepare(java.lang.String sql) |
public static java.lang.String getConnectionString()
public static java.sql.Connection initConnection()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close()
public java.sql.PreparedStatement prepare(java.lang.String sql)
public java.sql.ResultSet executeSelect(java.lang.String query)
public java.sql.ResultSet executeSelect(java.sql.PreparedStatement ps)
public int executeInsert(java.lang.String query)
public int executeInsert(java.sql.PreparedStatement ps)
public int executeUpdate(java.lang.String query)
public int executeUpdate(java.sql.PreparedStatement ps)
public void closeStatement(java.sql.PreparedStatement ps, java.sql.ResultSet rs)
public void closeStatement(java.sql.PreparedStatement ps)
public void ping()