public class Database
extends java.lang.Object
| Constructor and Description |
|---|
Database() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(java.sql.Connection con)
This method is designed to be used instead of con.close() because there are certain instances where the connection shouldn't be closed.
|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
A method for retrieving information from the database manually without having to mess with the raw connection.
|
boolean |
executeUpdate(java.lang.String sql)
An alternative to creating a raw connection yourself.
|
java.sql.Connection |
getRawConnection()
For advanced users only! A raw connection to the SQL database for BullionEconomy.
|
boolean |
usingMySQL()
Will determine if MySQL is being used or SQLlite is being used.
|
public java.sql.Connection getRawConnection()
public void closeConnection(java.sql.Connection con)
con - public boolean usingMySQL()
public boolean executeUpdate(java.lang.String sql)
sql - The SQL you wish to run on BullionEconomy's databasepublic java.sql.ResultSet executeQuery(java.lang.String sql)
sql - The SQL you wish to run on BullionEconomy's database