|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.base.RepositoryWrapper
org.openrdf.repository.contextaware.ContextAwareRepository
public class ContextAwareRepository
Allows contexts to be specified at the repository level.
| Constructor Summary | |
|---|---|
ContextAwareRepository()
|
|
ContextAwareRepository(Repository delegate)
|
|
| Method Summary | |
|---|---|
URI[] |
getAddContexts()
Deprecated. |
URI[] |
getArchiveContexts()
Deprecated. |
String |
getBaseURI()
|
ContextAwareConnection |
getConnection()
Opens a connection to this repository that can be used for querying and updating the contents of the repository. |
URI |
getInsertContext()
|
int |
getMaxQueryTime()
|
QueryLanguage |
getQueryLanguage()
|
URI[] |
getReadContexts()
|
URI[] |
getRemoveContexts()
|
boolean |
isIncludeInferred()
|
void |
setAddContexts(URI... addContexts)
Deprecated. |
void |
setArchiveContexts(URI... archiveContexts)
Deprecated. |
void |
setBaseURI(String baseURI)
|
void |
setIncludeInferred(boolean includeInferred)
|
void |
setInsertContext(URI insertContext)
|
void |
setMaxQueryTime(int maxQueryTime)
|
void |
setQueryLanguage(QueryLanguage ql)
|
void |
setReadContexts(URI... readContexts)
|
void |
setRemoveContexts(URI... removeContexts)
|
| Methods inherited from class org.openrdf.repository.base.RepositoryWrapper |
|---|
getDataDir, getDelegate, getValueFactory, initialize, isInitialized, isWritable, setDataDir, setDelegate, shutDown, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContextAwareRepository()
public ContextAwareRepository(Repository delegate)
| Method Detail |
|---|
public int getMaxQueryTime()
public void setMaxQueryTime(int maxQueryTime)
@Deprecated public URI[] getAddContexts()
ContextAwareConnection.getAddContexts()@Deprecated public URI[] getArchiveContexts()
ContextAwareConnection.getArchiveContexts()public URI getInsertContext()
ContextAwareConnection.getInsertContext()public QueryLanguage getQueryLanguage()
ContextAwareConnection.getQueryLanguage()public String getBaseURI()
public URI[] getReadContexts()
ContextAwareConnection.getReadContexts()public URI[] getRemoveContexts()
ContextAwareConnection.getRemoveContexts()public boolean isIncludeInferred()
ContextAwareConnection.isIncludeInferred()@Deprecated public void setAddContexts(URI... addContexts)
ContextAwareConnection.setAddContexts(URI[])@Deprecated public void setArchiveContexts(URI... archiveContexts)
ContextAwareConnection.setArchiveContexts(URI[])public void setInsertContext(URI insertContext)
ContextAwareConnection.setInsertContext(URI)public void setIncludeInferred(boolean includeInferred)
ContextAwareConnection.setIncludeInferred(boolean)public void setQueryLanguage(QueryLanguage ql)
ContextAwareConnection.setQueryLanguage(QueryLanguage)public void setBaseURI(String baseURI)
baseURI - The default baseURI to set.public void setReadContexts(URI... readContexts)
ContextAwareConnection.setReadContexts(URI[])public void setRemoveContexts(URI... removeContexts)
ContextAwareConnection.setRemoveContexts(URI[])
public ContextAwareConnection getConnection()
throws RepositoryException
Repository
Connection con = repository.getConnection();
try {
// perform operations on the connection
}
finally {
con.close();
}
getConnection in interface RepositorygetConnection in class RepositoryWrapperRepositoryException - If something went wrong during the creation of the Connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||