org.qi4j.library.rdf.repository
Class NativeRepositoryService.NativeRepositoryMixin

java.lang.Object
  extended by org.qi4j.library.rdf.repository.NativeRepositoryService.NativeRepositoryMixin
All Implemented Interfaces:
org.openrdf.repository.Repository, Composite, Identity, Availability, ServiceComposite, NativeRepositoryService, ResetableRepository
Enclosing interface:
NativeRepositoryService

public abstract static class NativeRepositoryService.NativeRepositoryMixin
extends java.lang.Object
implements NativeRepositoryService, ResetableRepository


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.library.rdf.repository.NativeRepositoryService
NativeRepositoryService.Activator, NativeRepositoryService.NativeRepositoryMixin
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Constructor Summary
NativeRepositoryService.NativeRepositoryMixin()
           
 
Method Summary
 void discardEntireRepository()
           
 org.openrdf.repository.RepositoryConnection getConnection()
           
 java.io.File getDataDir()
           
 org.openrdf.model.ValueFactory getValueFactory()
           
 void initialize()
           
 boolean isAvailable()
          Implementations should return true if the underlying service is currently available for use.
 boolean isInitialized()
           
 boolean isWritable()
           
 void setDataDir(java.io.File dataDir)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 

Constructor Detail

NativeRepositoryService.NativeRepositoryMixin

public NativeRepositoryService.NativeRepositoryMixin()
Method Detail

setDataDir

public void setDataDir(java.io.File dataDir)
Specified by:
setDataDir in interface org.openrdf.repository.Repository

getDataDir

public java.io.File getDataDir()
Specified by:
getDataDir in interface org.openrdf.repository.Repository

initialize

public void initialize()
                throws org.openrdf.repository.RepositoryException
Specified by:
initialize in interface org.openrdf.repository.Repository
Specified by:
initialize in interface NativeRepositoryService
Throws:
org.openrdf.repository.RepositoryException

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface org.openrdf.repository.Repository

shutDown

public void shutDown()
              throws org.openrdf.repository.RepositoryException
Specified by:
shutDown in interface org.openrdf.repository.Repository
Specified by:
shutDown in interface NativeRepositoryService
Throws:
org.openrdf.repository.RepositoryException

isWritable

public boolean isWritable()
                   throws org.openrdf.repository.RepositoryException
Specified by:
isWritable in interface org.openrdf.repository.Repository
Throws:
org.openrdf.repository.RepositoryException

getConnection

public org.openrdf.repository.RepositoryConnection getConnection()
                                                          throws org.openrdf.repository.RepositoryException
Specified by:
getConnection in interface org.openrdf.repository.Repository
Throws:
org.openrdf.repository.RepositoryException

getValueFactory

public org.openrdf.model.ValueFactory getValueFactory()
Specified by:
getValueFactory in interface org.openrdf.repository.Repository

discardEntireRepository

public void discardEntireRepository()
                             throws org.openrdf.repository.RepositoryException
Specified by:
discardEntireRepository in interface ResetableRepository
Throws:
org.openrdf.repository.RepositoryException

isAvailable

public boolean isAvailable()
Description copied from interface: Availability
Implementations should return true if the underlying service is currently available for use. Reasons why a service might not be available is either if it has been configured not to be (see the Enabled interface), or if an underlying resource is currently unavailable.

Specified by:
isAvailable in interface Availability
Returns:
true if the service is available, false otherwise.