|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.find.SQLResultSet
Contains the result set from one SQL query and transforms it into triples. A triple is produced for TripleMaker in TripleMaker and each row in the result set.
History:
06-06-2004: Initial version of this class.
08-03-2004: Almost complete rewrite to make logic more explicit.
Field Summary | |
protected java.util.Map |
columnNameNumberMap
The name used for the default graph. |
protected java.lang.String[] |
currentRow
Array with the data from the current row of the resordset. |
protected Database |
database
|
static Logger |
logger
|
protected int |
numCols
|
static java.util.Collection |
protocol
|
protected boolean |
queryHasBeenExecuted
Flag that the record set has already been created. |
private java.sql.ResultSet |
resultSet
|
static Logger |
separatorLogger
|
static boolean |
simulationMode
|
protected java.lang.String |
sql
|
Constructor Summary | |
SQLResultSet(java.lang.String SQL,
java.util.Map columnNameNumberMap,
Database db)
|
Method Summary | |
void |
close()
|
protected void |
executeSQLQuery()
|
protected java.lang.String[] |
nextRow()
Gets the current row from the result set in an array which is passed to the triple makers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map columnNameNumberMap
protected boolean queryHasBeenExecuted
protected java.lang.String[] currentRow
protected Database database
private java.sql.ResultSet resultSet
protected java.lang.String sql
protected int numCols
public static Logger logger
public static Logger separatorLogger
public static boolean simulationMode
public static java.util.Collection protocol
Constructor Detail |
public SQLResultSet(java.lang.String SQL, java.util.Map columnNameNumberMap, Database db)
Method Detail |
protected void executeSQLQuery()
public void close()
protected java.lang.String[] nextRow()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |