org.openrdf.elmo.sesame
Class SesameManagerFactory

java.lang.Object
  extended by org.openrdf.elmo.sesame.SesameManagerFactory
All Implemented Interfaces:
EntityManagerFactory, ElmoManagerFactory

public class SesameManagerFactory
extends Object
implements ElmoManagerFactory, EntityManagerFactory

Creates SesameBeanManagers.

Author:
James Leigh

Constructor Summary
SesameManagerFactory(ElmoModule module)
           
SesameManagerFactory(ElmoModule module, File dataDir, String repositoryId)
           
SesameManagerFactory(ElmoModule module, Repository repository)
           
SesameManagerFactory(ElmoModule module, String appId, String repositoryId)
           
SesameManagerFactory(ElmoModule module, URL server, String repositoryId)
           
 
Method Summary
 void close()
          Closes the factory preventing any more ElmoManagers from being created.
 SesameManager createElmoManager()
          Creates a new ElmoManager with the default Locale.
 SesameManager createElmoManager(Locale locale)
          Creates a new ElmoManager with the given Locale.
 SesameManager createEntityManager()
           
 SesameManager createEntityManager(Map properties)
           
 LiteralManager<URI,Literal> getLiteralManager()
           
 QueryLanguage getQueryLanguage()
           
 Repository getRepository()
           
 RoleMapper<URI> getRoleMapper()
           
 boolean isOpen()
          If this factory should be able to create an ElmoManager.
 void setInferencingEnabled(boolean enabled)
           
 void setQueryLanguage(QueryLanguage ql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SesameManagerFactory

public SesameManagerFactory(ElmoModule module)

SesameManagerFactory

public SesameManagerFactory(ElmoModule module,
                            Repository repository)

SesameManagerFactory

public SesameManagerFactory(ElmoModule module,
                            URL server,
                            String repositoryId)

SesameManagerFactory

public SesameManagerFactory(ElmoModule module,
                            File dataDir,
                            String repositoryId)

SesameManagerFactory

public SesameManagerFactory(ElmoModule module,
                            String appId,
                            String repositoryId)
Method Detail

getRepository

public Repository getRepository()

getQueryLanguage

public QueryLanguage getQueryLanguage()

setQueryLanguage

public void setQueryLanguage(QueryLanguage ql)

setInferencingEnabled

public void setInferencingEnabled(boolean enabled)

getRoleMapper

public RoleMapper<URI> getRoleMapper()

getLiteralManager

public LiteralManager<URI,Literal> getLiteralManager()

isOpen

public boolean isOpen()
Description copied from interface: ElmoManagerFactory
If this factory should be able to create an ElmoManager.

Specified by:
isOpen in interface EntityManagerFactory
Specified by:
isOpen in interface ElmoManagerFactory
Returns:
true if this factory is ready.

close

public void close()
Description copied from interface: ElmoManagerFactory
Closes the factory preventing any more ElmoManagers from being created.

Specified by:
close in interface EntityManagerFactory
Specified by:
close in interface ElmoManagerFactory

createEntityManager

public SesameManager createEntityManager()
Specified by:
createEntityManager in interface EntityManagerFactory

createEntityManager

public SesameManager createEntityManager(Map properties)
Specified by:
createEntityManager in interface EntityManagerFactory

createElmoManager

public SesameManager createElmoManager()
Description copied from interface: ElmoManagerFactory
Creates a new ElmoManager with the default Locale.

Specified by:
createElmoManager in interface ElmoManagerFactory
Returns:
A new ElmoManager.

createElmoManager

public SesameManager createElmoManager(Locale locale)
Description copied from interface: ElmoManagerFactory
Creates a new ElmoManager with the given Locale.

Specified by:
createElmoManager in interface ElmoManagerFactory
Parameters:
locale - Maybe null to indicate no localization.
Returns:
A new ElmoManager.


Copyright © 2004-2008 Aduna. All Rights Reserved.