org.openrdf.sail.rdbms
Class RdbmsTripleRepository

java.lang.Object
  extended by org.openrdf.sail.rdbms.RdbmsTripleRepository

public class RdbmsTripleRepository
extends Object

Facade to TransTableManager, URITable, BNodeTable and LiteralTable for adding, removing, and retrieving statements from the database.

Author:
James Leigh

Field Summary
static int STMT_BUFFER
           
 
Constructor Summary
RdbmsTripleRepository()
           
 
Method Summary
 void add(RdbmsStatement st)
           
 void begin()
           
 void close()
           
 void commit()
           
protected  void finalize()
           
 RdbmsStatementIteration find(Resource subj, URI pred, Value obj, Resource... ctxs)
           
 RdbmsResourceIteration findContexts()
           
 void flush()
           
 Connection getConnection()
           
protected  int getMaxQueueSize()
           
 DefaultSailChangedEvent getSailChangedEvent()
           
 RdbmsValueFactory getValueFactory()
           
 boolean isClosed()
           
 int remove(Resource subj, URI pred, Value obj, Resource... ctxs)
           
 void rollback()
           
 void setBNodeTable(BNodeTable bnodes)
           
 void setConnection(Connection conn)
           
 void setIdSequence(IdSequence ids)
           
 void setLiteralTable(LiteralTable literals)
           
 void setQueryBuilderFactory(QueryBuilderFactory factory)
           
 void setSailChangedEvent(DefaultSailChangedEvent sailChangedEvent)
           
 void setTransaction(TransTableManager temporary)
           
 void setTripleManager(TripleManager tripleManager)
           
 void setURITable(URITable uris)
           
 void setValueFactory(RdbmsValueFactory vf)
           
 long size(RdbmsResource... ctxs)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STMT_BUFFER

public static int STMT_BUFFER
Constructor Detail

RdbmsTripleRepository

public RdbmsTripleRepository()
Method Detail

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection conn)

setIdSequence

public void setIdSequence(IdSequence ids)

getValueFactory

public RdbmsValueFactory getValueFactory()

setValueFactory

public void setValueFactory(RdbmsValueFactory vf)

getSailChangedEvent

public DefaultSailChangedEvent getSailChangedEvent()

setSailChangedEvent

public void setSailChangedEvent(DefaultSailChangedEvent sailChangedEvent)

setQueryBuilderFactory

public void setQueryBuilderFactory(QueryBuilderFactory factory)

setBNodeTable

public void setBNodeTable(BNodeTable bnodes)

setURITable

public void setURITable(URITable uris)

setLiteralTable

public void setLiteralTable(LiteralTable literals)

setTransaction

public void setTransaction(TransTableManager temporary)

setTripleManager

public void setTripleManager(TripleManager tripleManager)

flush

public void flush()
           throws RdbmsException
Throws:
RdbmsException

begin

public void begin()
           throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

commit

public void commit()
            throws SQLException,
                   RdbmsException,
                   InterruptedException
Throws:
SQLException
RdbmsException
InterruptedException

rollback

public void rollback()
              throws SQLException,
                     SailException
Throws:
SQLException
SailException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

add

public void add(RdbmsStatement st)
         throws SailException,
                SQLException,
                InterruptedException
Throws:
SailException
SQLException
InterruptedException

find

public RdbmsStatementIteration find(Resource subj,
                                    URI pred,
                                    Value obj,
                                    Resource... ctxs)
                             throws RdbmsException
Throws:
RdbmsException

findContexts

public RdbmsResourceIteration findContexts()
                                    throws SQLException,
                                           RdbmsException
Throws:
SQLException
RdbmsException

isClosed

public boolean isClosed()
                 throws SQLException
Throws:
SQLException

remove

public int remove(Resource subj,
                  URI pred,
                  Value obj,
                  Resource... ctxs)
           throws RdbmsException
Throws:
RdbmsException

size

public long size(RdbmsResource... ctxs)
          throws SQLException,
                 SailException
Throws:
SQLException
SailException

getMaxQueueSize

protected int getMaxQueueSize()


Copyright © 2001-2012 Aduna. All Rights Reserved.