public class RecordSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
connection
Connection object that will be used to retrieve data.
|
protected static java.util.logging.Logger |
logger |
protected java.lang.String |
queryString
The query string that will be executed on the database.
|
Constructor and Description |
---|
RecordSet(java.sql.Connection inConnection)
Use this constructor if you want a little more control of the process.
|
RecordSet(java.sql.Connection inConnection,
java.lang.String query)
Does everything.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getAllQuery()
Executes "select * from 'tableName'", or whatever the queryString is set
to.
|
java.sql.Connection |
getConnection() |
java.lang.String |
getQueryString() |
java.sql.ResultSet |
getResultSet()
Get the result set, after calling next.
|
boolean |
next()
This function should be called to prepare the result set with the next
record set of data.
|
void |
setConnection(java.sql.Connection inConnection) |
void |
setQueryString(java.lang.String inQueryString) |
protected static java.util.logging.Logger logger
protected java.sql.Connection connection
protected java.lang.String queryString
public RecordSet(java.sql.Connection inConnection) throws java.sql.SQLException
java.sql.SQLException
public RecordSet(java.sql.Connection inConnection, java.lang.String query) throws java.sql.SQLException
java.sql.SQLException
public void getAllQuery() throws java.sql.SQLException
throws
- SQLException if something goes wrong with the query.java.sql.SQLException
public boolean next() throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet getResultSet()
public void close() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection inConnection)
public java.lang.String getQueryString()
public void setQueryString(java.lang.String inQueryString)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details