org.openrdf.repository.query.config
Class NamedQueryRepositoryFactory

java.lang.Object
  extended by org.openrdf.repository.query.config.NamedQueryRepositoryFactory
All Implemented Interfaces:
RepositoryFactory

public class NamedQueryRepositoryFactory
extends Object
implements RepositoryFactory

Factory for Named Query Repositories

Author:
Steve Battle

Field Summary
static String REPOSITORY_TYPE
           
 
Constructor Summary
NamedQueryRepositoryFactory()
           
 
Method Summary
 NamedQueryRepository createRepository(Repository delegate)
          Create a Repository from a previously initialised delegate.
 NamedQueryRepository createRepository(RepositoryImplConfig config, Repository delegate)
          Create a Repository from a previously initialised delegate (with config).
 RepositoryImplConfig getConfig()
           
 NamedQueryRepository getRepository(RepositoryImplConfig configuration)
          Create an uninitialised Repository without a delegate.
 String getRepositoryType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_TYPE

public static final String REPOSITORY_TYPE
See Also:
Constant Field Values
Constructor Detail

NamedQueryRepositoryFactory

public NamedQueryRepositoryFactory()
Method Detail

getRepositoryType

public String getRepositoryType()
Specified by:
getRepositoryType in interface RepositoryFactory

getConfig

public RepositoryImplConfig getConfig()
Specified by:
getConfig in interface RepositoryFactory

createRepository

public NamedQueryRepository createRepository(Repository delegate)
                                      throws RepositoryConfigException,
                                             RepositoryException
Create a Repository from a previously initialised delegate.

Throws:
RepositoryConfigException
RepositoryException

createRepository

public NamedQueryRepository createRepository(RepositoryImplConfig config,
                                             Repository delegate)
                                      throws RepositoryConfigException,
                                             RepositoryException
Create a Repository from a previously initialised delegate (with config).

Throws:
RepositoryConfigException
RepositoryException

getRepository

public NamedQueryRepository getRepository(RepositoryImplConfig configuration)
                                   throws RepositoryConfigException
Create an uninitialised Repository without a delegate. NO DATA-DIR CONFIGURED FOR PERSISTENCE

Specified by:
getRepository in interface RepositoryFactory
Throws:
RepositoryConfigException


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.