org.trippi.impl.oracle
Class OracleSession

java.lang.Object
  extended by org.trippi.impl.oracle.OracleSession
All Implemented Interfaces:
java.lang.Runnable, TriplestoreSession

public class OracleSession
extends java.lang.Object
implements TriplestoreSession, java.lang.Runnable

A TriplestoreSession that wraps a OracleRepository.

Author:
liberman@case.edu

Field Summary
static java.lang.String SPO
          Description of the Field
static java.lang.String[] TRIPLE_LANGUAGES
          spo
static java.lang.String[] TUPLE_LANGUAGES
          tuple queries aren't supported yet
 
Constructor Summary
OracleSession(java.sql.Connection repository, AliasManager aliasManager, java.lang.String RDFSchemaName)
          Construct an Oracle session.
 
Method Summary
 void add(java.util.Set triples)
          Description of the Method
 void close()
          Description of the Method
 void delete(java.util.Set triples)
          Description of the Method
 void finalize()
          Ensure close() gets called at garbage collection time.
 TripleIterator findTriples(java.lang.String lang, java.lang.String queryText)
          Description of the Method
 TripleIterator findTriples(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object)
          Description of the Method
 org.jrdf.graph.GraphElementFactory getElementFactory()
          Gets the elementFactory attribute of the OracleSession object
 java.lang.String[] listTripleLanguages()
          Description of the Method
 java.lang.String[] listTupleLanguages()
          Description of the Method
 TupleIterator query(java.lang.String queryText, java.lang.String language)
          Description of the Method
 void run()
          Main processing method for the OracleSession object
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPO

public static final java.lang.String SPO
Description of the Field

See Also:
Constant Field Values

TUPLE_LANGUAGES

public static final java.lang.String[] TUPLE_LANGUAGES
tuple queries aren't supported yet


TRIPLE_LANGUAGES

public static final java.lang.String[] TRIPLE_LANGUAGES
spo

Constructor Detail

OracleSession

public OracleSession(java.sql.Connection repository,
                     AliasManager aliasManager,
                     java.lang.String RDFSchemaName)
Construct an Oracle session.

Parameters:
repository - Description of the Parameter
aliasManager - Description of the Parameter
RDFSchemaName - Description of the Parameter
Method Detail

listTupleLanguages

public java.lang.String[] listTupleLanguages()
Description of the Method

Specified by:
listTupleLanguages in interface TriplestoreSession
Returns:
Description of the Return Value

listTripleLanguages

public java.lang.String[] listTripleLanguages()
Description of the Method

Specified by:
listTripleLanguages in interface TriplestoreSession
Returns:
Description of the Return Value

getElementFactory

public org.jrdf.graph.GraphElementFactory getElementFactory()
Gets the elementFactory attribute of the OracleSession object

Returns:
The elementFactory value

add

public void add(java.util.Set triples)
         throws TrippiException
Description of the Method

Specified by:
add in interface TriplestoreSession
Parameters:
triples - Description of the Parameter
Throws:
TrippiException - Description of the Exception

delete

public void delete(java.util.Set triples)
            throws TrippiException
Description of the Method

Specified by:
delete in interface TriplestoreSession
Parameters:
triples - Description of the Parameter
Throws:
TrippiException - Description of the Exception

run

public void run()
Main processing method for the OracleSession object

Specified by:
run in interface java.lang.Runnable

findTriples

public TripleIterator findTriples(org.jrdf.graph.SubjectNode subject,
                                  org.jrdf.graph.PredicateNode predicate,
                                  org.jrdf.graph.ObjectNode object)
                           throws TrippiException
Description of the Method

Specified by:
findTriples in interface TriplestoreSession
Parameters:
subject - Description of the Parameter
predicate - Description of the Parameter
object - Description of the Parameter
Returns:
Description of the Return Value
Throws:
TrippiException - Description of the Exception

findTriples

public TripleIterator findTriples(java.lang.String lang,
                                  java.lang.String queryText)
                           throws TrippiException
Description of the Method

Specified by:
findTriples in interface TriplestoreSession
Parameters:
lang - Description of the Parameter
queryText - Description of the Parameter
Returns:
Description of the Return Value
Throws:
TrippiException - Description of the Exception

query

public TupleIterator query(java.lang.String queryText,
                           java.lang.String language)
                    throws TrippiException
Description of the Method

Specified by:
query in interface TriplestoreSession
Parameters:
queryText - Description of the Parameter
language - Description of the Parameter
Returns:
Description of the Return Value
Throws:
TrippiException - Description of the Exception

close

public void close()
           throws TrippiException
Description of the Method

Specified by:
close in interface TriplestoreSession
Throws:
TrippiException - Description of the Exception

finalize

public void finalize()
              throws TrippiException
Ensure close() gets called at garbage collection time.

Overrides:
finalize in class java.lang.Object
Throws:
TrippiException - Description of the Exception