public class ContextAwareRepository extends RepositoryWrapper
Constructor and Description |
---|
ContextAwareRepository() |
ContextAwareRepository(Repository delegate) |
Modifier and Type | Method and Description |
---|---|
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) |
getDataDir, getDelegate, getValueFactory, initialize, isInitialized, isWritable, setDataDir, setDelegate, shutDown, toString
public ContextAwareRepository()
public ContextAwareRepository(Repository delegate)
public int getMaxQueryTime()
public void setMaxQueryTime(int maxQueryTime)
@Deprecated public URI[] getAddContexts()
ContextAwareConnection.getAddContexts()
@Deprecated public URI[] getArchiveContexts()
public URI getInsertContext()
public QueryLanguage getQueryLanguage()
public String getBaseURI()
public URI[] getReadContexts()
ContextAwareConnection.getReadContexts()
public URI[] getRemoveContexts()
public boolean isIncludeInferred()
@Deprecated public void setAddContexts(URI... addContexts)
@Deprecated public void setArchiveContexts(URI... archiveContexts)
public void setInsertContext(URI insertContext)
public void setIncludeInferred(boolean includeInferred)
public void setQueryLanguage(QueryLanguage ql)
public void setBaseURI(String baseURI)
baseURI
- The default baseURI to set.public void setReadContexts(URI... readContexts)
public void setRemoveContexts(URI... removeContexts)
public ContextAwareConnection getConnection() throws RepositoryException
Repository
Connection con = repository.getConnection(); try { // perform operations on the connection } finally { con.close(); }
getConnection
in interface Repository
getConnection
in class RepositoryWrapper
RepositoryException
- If something went wrong during the creation of the Connection.Copyright © 2001-2016 Aduna. All Rights Reserved.