Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nl.aidministrator.rdf.ral.rdbms
Class SQLLiteralIterator  view SQLLiteralIterator download SQLLiteralIterator.java

java.lang.Object
  extended bynl.aidministrator.rdf.ral.rdbms.SQLValueIterator
      extended bynl.aidministrator.rdf.ral.rdbms.SQLLiteralIterator
All Implemented Interfaces:
nl.aidministrator.rdf.ral.ResourceIterator

public class SQLLiteralIterator
extends SQLValueIterator

An implementation of SQLValueIterator that iterates rdfs:Literals. It implements getResult() which creates a new Literal. The ResultSet should contain the following columns: id (int), language (String) and value (String).

Version:
1.2, 12/13/01

Field Summary
 
Fields inherited from class nl.aidministrator.rdf.ral.rdbms.SQLValueIterator
_databaseCon, _hasNext, _query, _resultSet, _statement
 
Constructor Summary
SQLLiteralIterator(java.sql.Connection databaseCon, java.lang.String query)
          Constructor.
 
Method Summary
protected  nl.aidministrator.rdf.sail.model.Value getResult()
          Gets the next result from the ResultSet and returns it as a Literal.
 
Methods inherited from class nl.aidministrator.rdf.ral.rdbms.SQLValueIterator
close, finalize, hasNext, next
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLLiteralIterator

public SQLLiteralIterator(java.sql.Connection databaseCon,
                          java.lang.String query)
Constructor.

Method Detail

getResult

protected nl.aidministrator.rdf.sail.model.Value getResult()
                                                    throws java.sql.SQLException
Gets the next result from the ResultSet and returns it as a Literal.

Specified by:
getResult in class SQLValueIterator