|
|||||||||
| Home >> All >> nl >> aidministrator >> rdf >> sail >> sql92 >> [ iterators overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
nl.aidministrator.rdf.sail.sql92.iterators
Class SQL92ValueIterator

java.lang.Objectnl.aidministrator.rdf.sail.sql92.iterators.SQL92ValueIterator
- All Implemented Interfaces:
- nl.aidministrator.rdf.sail.ValueIterator
- Direct Known Subclasses:
- SQL92LiteralIterator, SQL92ResourceIterator
- public abstract class SQL92ValueIterator
- extends java.lang.Object
- implements nl.aidministrator.rdf.sail.ValueIterator
- extends java.lang.Object
A ResourceIterator that executes an SQL query. SQL92ValueIterator is an abstract class, no instances of SQL92ValueIterator can be created. A subclass of SQL92ValueIterator is defined that either iterates rdfs:Resources or rdfs:Literals. This subclass must implement getResult(), the implementation of getResult() must call the proper contructor of either rdfs:Resource or rdfs:Literal.
- Version:
- 1.1, 01/17/02
| Field Summary | |
protected java.sql.Connection |
_databaseCon
Connection to the database. |
protected boolean |
_hasNext
Flag indicating whether there are any more results. |
protected java.lang.String |
_query
Query to execute. |
protected java.sql.ResultSet |
_resultSet
ResultSet for the query. |
protected java.sql.Statement |
_statement
SQL statement that was used to generate the ResultSet. |
| Constructor Summary | |
SQL92ValueIterator(java.sql.Connection databaseCon,
java.lang.String query)
Constructor. |
|
| Method Summary | |
private void |
_execQuery()
|
void |
close()
Closes the iterator and frees any resources that it uses (e.g. |
protected void |
finalize()
Called by the garbage collector on SQL92ValueIterator when garbage collection determines that there are no more references to the SQL92ValueIterator. |
protected abstract nl.aidministrator.rdf.sail.model.Value |
getResult()
Gets the result from the ResultSet. |
boolean |
hasNext()
Checks whether there are any more values available. |
nl.aidministrator.rdf.sail.model.Value |
next()
Gets the next value. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_resultSet
protected java.sql.ResultSet _resultSet
- ResultSet for the query.
_statement
protected java.sql.Statement _statement
- SQL statement that was used to generate the ResultSet. It cannot be closed
until all results have been read from the ResultSet.
_databaseCon
protected java.sql.Connection _databaseCon
- Connection to the database.
_query
protected java.lang.String _query
- Query to execute.
_hasNext
protected boolean _hasNext
- Flag indicating whether there are any more results.
| Constructor Detail |
SQL92ValueIterator
public SQL92ValueIterator(java.sql.Connection databaseCon, java.lang.String query)
- Constructor.
| Method Detail |
_execQuery
private void _execQuery()
hasNext
public boolean hasNext()
- Description copied from interface:
nl.aidministrator.rdf.sail.ValueIterator - Checks whether there are any more values available.
- Specified by:
hasNextin interfacenl.aidministrator.rdf.sail.ValueIterator
next
public nl.aidministrator.rdf.sail.model.Value next()
- Description copied from interface:
nl.aidministrator.rdf.sail.ValueIterator - Gets the next value.
- Specified by:
nextin interfacenl.aidministrator.rdf.sail.ValueIterator
close
public void close()
- Description copied from interface:
nl.aidministrator.rdf.sail.ValueIterator - Closes the iterator and frees any resources that it uses (e.g.
connections to databases). Every ValueIterator should be properly
closed when it has returned all of its values, or when it is no longer
needed.
- Specified by:
closein interfacenl.aidministrator.rdf.sail.ValueIterator
finalize
protected void finalize()
- Called by the garbage collector on SQL92ValueIterator when garbage
collection determines that there are no more references to the
SQL92ValueIterator.
getResult
protected abstract nl.aidministrator.rdf.sail.model.Value getResult()
- Gets the result from the ResultSet. Must be implemented by
SQL92ResourceIterator or SQL92LiteralIterator in order to call the proper
constructor of either Resource or Literal.
|
|||||||||
| Home >> All >> nl >> aidministrator >> rdf >> sail >> sql92 >> [ iterators overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
nl.aidministrator.rdf.sail.sql92.iterators.SQL92ValueIterator