|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.base.RepositoryWrapper
public class RepositoryWrapper
A DelegatingRepository implementation that, by default, forwards all
method calls to its delegate.
| Constructor Summary | |
|---|---|
RepositoryWrapper()
Creates a new RepositoryWrapper. |
|
RepositoryWrapper(Repository delegate)
Creates a new RepositoryWrapper and calls setDelegate(Repository) with the supplied delegate repository. |
|
| Method Summary | |
|---|---|
RepositoryConnection |
getConnection()
Opens a connection to this repository that can be used for querying and updating the contents of the repository. |
File |
getDataDir()
Get the directory where data and logging for this repository is stored. |
Repository |
getDelegate()
|
LiteralFactory |
getLiteralFactory()
Gets a LiteralFactory for this Repository. |
RepositoryMetaData |
getMetaData()
|
URIFactory |
getURIFactory()
Gets a URIFactory for this Repository. |
ValueFactory |
getValueFactory()
Gets a ValueFactory for this Repository. |
void |
initialize()
Initializes this repository. |
void |
setDataDir(File dataDir)
Set the directory where data and logging for this repository is stored. |
void |
setDelegate(Repository delegate)
|
void |
shutDown()
Shuts the repository down, releasing any resources that it keeps hold of. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryWrapper()
public RepositoryWrapper(Repository delegate)
setDelegate(Repository) with the supplied delegate repository.
| Method Detail |
|---|
public void setDelegate(Repository delegate)
setDelegate in interface DelegatingRepositorypublic Repository getDelegate()
getDelegate in interface DelegatingRepository
public RepositoryMetaData getMetaData()
throws StoreException
getMetaData in interface RepositoryStoreExceptionpublic void setDataDir(File dataDir)
Repository
setDataDir in interface RepositorydataDir - the directory where data for this repository is storedpublic File getDataDir()
Repository
getDataDir in interface Repository
public void initialize()
throws StoreException
Repository
initialize in interface RepositoryStoreException - If the initialization failed.
public void shutDown()
throws StoreException
Repository
shutDown in interface RepositoryStoreException
public RepositoryConnection getConnection()
throws StoreException
Repository
Connection con = repository.getConnection();
try {
// perform operations on the connection
}
finally {
con.close();
}
getConnection in interface RepositoryStoreException - If something went wrong during the creation of the Connection.public LiteralFactory getLiteralFactory()
Repository
getLiteralFactory in interface Repositorypublic URIFactory getURIFactory()
Repository
getURIFactory in interface Repositorypublic ValueFactory getValueFactory()
Repository
getValueFactory in interface Repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||