|
||||||||||
| 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()
|
ValueFactory |
getValueFactory()
Gets a ValueFactory for this Repository. |
void |
initialize()
Initializes this repository. |
boolean |
isWritable()
Checks whether this repository is writable, i.e. |
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 DelegatingRepositorypublic 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 RepositoryException
Repository
initialize in interface RepositoryRepositoryException - If the initialization failed.
public void shutDown()
throws RepositoryException
Repository
shutDown in interface RepositoryRepositoryException
public boolean isWritable()
throws RepositoryException
Repository
isWritable in interface RepositoryRepositoryException
public RepositoryConnection getConnection()
throws RepositoryException
Repository
Connection con = repository.getConnection();
try {
// perform operations on the connection
}
finally {
con.close();
}
getConnection in interface RepositoryRepositoryException - If something went wrong during the creation of the Connection.public ValueFactory getValueFactory()
Repository
getValueFactory in interface Repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||