public class DBConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection
The real connection around which this class is wrapped
|
| Constructor and Description |
|---|
DBConnection(String URL,
String user,
String passwd)
Construct an instance of this Object which can then execute queries on
the DB
|
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
executeQuery(String query)
Returns a String array containing the resulting table from the query,
null if there was some problem with the query.
|
int |
executeUpdate(String query) |
boolean |
isConnected() |
static void |
main(String[] args) |
String |
toString()
Overridden toString method to get some status information as well.
|
protected Connection connection
public DBConnection(String URL, String user, String passwd) throws IOWrapperException
IOWrapperExceptionpublic boolean isConnected()
public ResultSet executeQuery(String query)
public String toString()
public static void main(String[] args) throws IOWrapperException
IOWrapperExceptionCopyright © 2013. All rights reserved.