|
||||||||||
| 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
org.openrdf.repository.object.ObjectRepository
public class ObjectRepository
Creates the ObjectConnection used to interact with the repository.
Use ObjectRepositoryFactory to create this.
| Constructor Summary | |
|---|---|
ObjectRepository(RoleMapper mapper,
LiteralManager literals,
ClassLoader cl)
|
|
| Method Summary | |
|---|---|
void |
closed(ObjectConnection con)
|
void |
compileAfter(ObjectConnection con)
|
protected ClassFactory |
createClassFactory(File composed,
ClassLoader cl)
|
protected ClassResolver |
createClassResolver(ClassFactory definer,
RoleMapper mapper,
PropertyMapper pm)
|
protected ObjectFactory |
createObjectFactory(RoleMapper mapper,
PropertyMapper pm,
LiteralManager literalManager,
ClassResolver resolver,
ClassLoader cl)
|
protected PropertyMapper |
createPropertyMapper(ClassLoader cl)
|
protected TypeManager |
createTypeManager()
|
ObjectConnection |
getConnection()
Creates a new ObjectConnection that will need to be closed by the caller. |
ValueFactory |
getLiteralFactory()
|
ValueFactory |
getURIFactory()
|
void |
init(File dataDir)
Called by ObjectRepositoryFactory when the delegate repository
has already been initialized. |
void |
initialize()
|
boolean |
isCompileRepository()
|
void |
setBehaviourClassPath(URL[] cp)
Additional classpath that should be included after the model is compiled. |
void |
setCompileRepository(boolean compileRepository)
|
void |
setFollowImports(boolean followImports)
|
void |
setMemberPrefix(String prefix)
Assigns the member prefix to use when compiling classes. |
void |
setOWLImports(List<URL> imports)
|
void |
setPackagePrefix(String prefix)
Assigns a name prefix prepended to the beginning of all compiled packages. |
void |
shutDown()
|
| Methods inherited from class org.openrdf.repository.contextaware.ContextAwareRepository |
|---|
getAddContexts, getArchiveContexts, getMaxQueryTime, getQueryLanguage, getReadContexts, getRemoveContexts, isIncludeInferred, setAddContexts, setArchiveContexts, setIncludeInferred, setMaxQueryTime, setQueryLanguage, setReadContexts, setRemoveContexts |
| Methods inherited from class org.openrdf.repository.base.RepositoryWrapper |
|---|
getDataDir, getDelegate, getValueFactory, isWritable, setDataDir, setDelegate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectRepository(RoleMapper mapper,
LiteralManager literals,
ClassLoader cl)
| Method Detail |
|---|
public void setPackagePrefix(String prefix)
prefix - such as "compiled."public void setMemberPrefix(String prefix)
public void setBehaviourClassPath(URL[] cp)
public void setFollowImports(boolean followImports)
public void setOWLImports(List<URL> imports)
public void initialize()
throws RepositoryException
initialize in interface Repositoryinitialize in class RepositoryWrapperRepositoryExceptionpublic ValueFactory getURIFactory()
public ValueFactory getLiteralFactory()
public boolean isCompileRepository()
public void setCompileRepository(boolean compileRepository)
public void compileAfter(ObjectConnection con)
public void closed(ObjectConnection con)
throws RepositoryException
RepositoryException
public void init(File dataDir)
throws RepositoryException,
ObjectStoreConfigException
ObjectRepositoryFactory when the delegate repository
has already been initialized.
RepositoryException
ObjectStoreConfigException
public void shutDown()
throws RepositoryException
shutDown in interface RepositoryshutDown in class RepositoryWrapperRepositoryException
public ObjectConnection getConnection()
throws RepositoryException
getConnection in interface RepositorygetConnection in class ContextAwareRepositoryRepositoryExceptionprotected TypeManager createTypeManager()
protected ObjectFactory createObjectFactory(RoleMapper mapper,
PropertyMapper pm,
LiteralManager literalManager,
ClassResolver resolver,
ClassLoader cl)
protected ClassResolver createClassResolver(ClassFactory definer,
RoleMapper mapper,
PropertyMapper pm)
protected PropertyMapper createPropertyMapper(ClassLoader cl)
protected ClassFactory createClassFactory(File composed,
ClassLoader cl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||