org.joseki.server.source
Class ModelSourcePermanent

java.lang.Object
  extended byorg.joseki.server.source.ModelSourceCom
      extended byorg.joseki.server.source.ModelSourcePermanent
All Implemented Interfaces:
ModelSource, ModelSourceJena

public class ModelSourcePermanent
extends org.joseki.server.source.ModelSourceCom

An attached model that manages a model whose OS resources do not need managing at query time i.e. they are permanently allocated at creation of the ModelSource.

Version:
$Id: ModelSourcePermanent.java,v 1.3 2004/04/30 14:13:14 andy_seaborne Exp $
Author:
Andy Seaborne

Constructor Summary
ModelSourcePermanent(SourceController ctl, com.hp.hpl.jena.rdf.model.Model _model, java.lang.String serverURI)
           
 
Method Summary
 void abortOperation()
           
 void activate()
           
 void deactivate()
           
 void endOperation()
           
 void flush()
           
 com.hp.hpl.jena.rdf.model.Model getModel()
          Get the Jena model for this source.
 java.util.Map getPrefixes()
          Help write results neatly.
 ProcessorRegistry getProcessorRegistry()
           
 java.lang.String getServerURI()
          The way to reference this data from outside.
 boolean isImmutable()
           
 void release()
           
 void setIsImmutable(boolean isFixed)
           
 void setPrefix(java.lang.String prefix, java.lang.String nsURI)
           
 void startOperation(boolean readOnly)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelSourcePermanent

public ModelSourcePermanent(SourceController ctl,
                            com.hp.hpl.jena.rdf.model.Model _model,
                            java.lang.String serverURI)
Method Detail

getModel

public com.hp.hpl.jena.rdf.model.Model getModel()
Description copied from interface: ModelSourceJena
Get the Jena model for this source.


getPrefixes

public java.util.Map getPrefixes()
Description copied from interface: ModelSource
Help write results neatly.

Specified by:
getPrefixes in interface ModelSource

setPrefix

public void setPrefix(java.lang.String prefix,
                      java.lang.String nsURI)
Specified by:
setPrefix in interface ModelSource

startOperation

public void startOperation(boolean readOnly)
Specified by:
startOperation in interface ModelSource

endOperation

public void endOperation()
Specified by:
endOperation in interface ModelSource

abortOperation

public void abortOperation()
Specified by:
abortOperation in interface ModelSource

flush

public void flush()
Specified by:
flush in interface ModelSource

release

public void release()
Specified by:
release in interface ModelSource

isImmutable

public boolean isImmutable()
Specified by:
isImmutable in interface ModelSource

setIsImmutable

public void setIsImmutable(boolean isFixed)
Specified by:
setIsImmutable in interface ModelSource

getServerURI

public java.lang.String getServerURI()
Description copied from interface: ModelSource
The way to reference this data from outside. This is the URL minus the protocol host part e.g. "/dir/foobar" because we can have many access points on the web for this server.

Specified by:
getServerURI in interface ModelSource

getProcessorRegistry

public ProcessorRegistry getProcessorRegistry()
Specified by:
getProcessorRegistry in interface ModelSource

activate

public void activate()
Specified by:
activate in interface ModelSource

deactivate

public void deactivate()
Specified by:
deactivate in interface ModelSource


Copyright © 2002 Hewlett-Packard. All Rights Reserved.