org.openrdf.repository.dataset
Class DatasetRepository

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryWrapper
      extended by org.openrdf.repository.dataset.DatasetRepository
All Implemented Interfaces:
DelegatingRepository, Repository

public class DatasetRepository
extends RepositoryWrapper


Constructor Summary
DatasetRepository()
           
DatasetRepository(SailRepository delegate)
           
 
Method Summary
 RepositoryConnection getConnection()
          Opens a connection to this repository that can be used for querying and updating the contents of the repository.
 SailRepository getDelegate()
           
 void loadDataset(java.net.URL url, URI context)
           
 void setDelegate(Repository delegate)
           
 
Methods inherited from class org.openrdf.repository.base.RepositoryWrapper
getDataDir, getValueFactory, initialize, isWritable, setDataDir, shutDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetRepository

public DatasetRepository()

DatasetRepository

public DatasetRepository(SailRepository delegate)
Method Detail

setDelegate

public void setDelegate(Repository delegate)
Specified by:
setDelegate in interface DelegatingRepository
Overrides:
setDelegate in class RepositoryWrapper

getDelegate

public SailRepository getDelegate()
Specified by:
getDelegate in interface DelegatingRepository
Overrides:
getDelegate in class RepositoryWrapper

getConnection

public RepositoryConnection getConnection()
                                   throws RepositoryException
Description copied from interface: Repository
Opens a connection to this repository that can be used for querying and updating the contents of the repository. Created connections need to be closed to make sure that any resources they keep hold of are released. The best way to do this is to use a try-finally-block as follows:
 Connection con = repository.getConnection();
 try {
        // perform operations on the connection
 }
 finally {
        con.close();
 }
 

Specified by:
getConnection in interface Repository
Overrides:
getConnection in class RepositoryWrapper
Returns:
A connection that allows operations on this repository.
Throws:
RepositoryException - If something went wrong during the creation of the Connection.

loadDataset

public void loadDataset(java.net.URL url,
                        URI context)
                 throws RepositoryException
Throws:
RepositoryException


Copyright © 2001-2010 Aduna. All Rights Reserved.