org.openrdf.repository.dataset
Class DatasetRepository
java.lang.Object
org.openrdf.repository.base.RepositoryWrapper
org.openrdf.repository.dataset.DatasetRepository
- All Implemented Interfaces:
- DelegatingRepository, Repository
public class DatasetRepository
- extends RepositoryWrapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DatasetRepository
public DatasetRepository()
DatasetRepository
public DatasetRepository(SailRepository delegate)
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.