org.jwarp.service.persistence
Class PersistenceService

java.lang.Object
  |
  +--org.jwarp.service.AService
        |
        +--org.jwarp.service.persistence.PersistenceService
All Implemented Interfaces:
IConfigurable, IExceptionProvider, IPersistenceService, IReferenceable, IService

public class PersistenceService
extends AService
implements IPersistenceService

The XSLT Service is used to transform xml with a xsl stylesheet. The service makes use of the Xalan xslt engine available from apache.

Version:
1.0
Author:
Anatole Tresch

Field Summary
(package private)  java.util.Hashtable jdos
           
 
Fields inherited from class org.jwarp.service.AService
context, createdDate, dependencies, emptyProperties, exceptionListeners, log, resumedDate, serviceName, serviceStatus, serviceType, startedDate, stoppedDate, suspendedDate, systemTicket
 
Fields inherited from interface org.jwarp.service.persistence.IPersistenceService
SERVICE_TYPE
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Constructor Summary
PersistenceService()
           
 
Method Summary
 void configure(org.jdom.Element element)
          Pass the Configuration to the Configurable class.
 org.exolab.castor.jdo.JDO createJDO(java.lang.String name, java.lang.String configUrl, ITicket user)
           
 org.exolab.castor.jdo.Database getDatabase(java.lang.String name, ITicket user)
          Uses an xsl file to transform xml input from a reader and writes the output to a writer.
 org.exolab.castor.jdo.JDO getJDO(java.lang.String name, ITicket user)
           
 java.util.Iterator getJDOs(ITicket user)
           
protected  org.exolab.castor.jdo.JDO makeStore(java.lang.String name, java.lang.String configUrl)
           
 org.exolab.castor.jdo.JDO removeJDO(java.lang.String name, ITicket user)
           
 
Methods inherited from class org.jwarp.service.AService
addExceptionListener, checkContext, createLogFromXML, getContext, getCreationDate, getDependencies, getExceptionListeners, getLog, getLogLevel, getName, getReference, getResumedDate, getShutDownDate, getStartDate, getStatus, getSuspendedDate, getType, removeAllExceptionListeners, removeExceptionListener, resume, sendExceptionEvent, setContext, setDependencies, setLogLevel, setName, shutdown, start, suspend
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

jdos

java.util.Hashtable jdos
Constructor Detail

PersistenceService

public PersistenceService()
Method Detail

configure

public void configure(org.jdom.Element element)
               throws ConfigurationException
Description copied from interface: IConfigurable
Pass the Configuration to the Configurable class. This method must always be called after the constructor and before any other method.
Specified by:
configure in interface IConfigurable
Overrides:
configure in class AService
Following copied from interface: org.jwarp.service.configuration.IConfigurable
Parameters:
configuration - the class configurations.

createJDO

public org.exolab.castor.jdo.JDO createJDO(java.lang.String name,
                                           java.lang.String configUrl,
                                           ITicket user)
                                    throws java.lang.SecurityException,
                                           PersistenceException
Specified by:
createJDO in interface IPersistenceService

removeJDO

public org.exolab.castor.jdo.JDO removeJDO(java.lang.String name,
                                           ITicket user)
                                    throws java.lang.SecurityException
Specified by:
removeJDO in interface IPersistenceService

getJDO

public org.exolab.castor.jdo.JDO getJDO(java.lang.String name,
                                        ITicket user)
                                 throws java.lang.SecurityException
Specified by:
getJDO in interface IPersistenceService

getJDOs

public java.util.Iterator getJDOs(ITicket user)
                           throws java.lang.SecurityException
Specified by:
getJDOs in interface IPersistenceService

getDatabase

public org.exolab.castor.jdo.Database getDatabase(java.lang.String name,
                                                  ITicket user)
                                           throws java.lang.SecurityException
Uses an xsl file to transform xml input from a reader and writes the output to a writer.
Specified by:
getDatabase in interface IPersistenceService
Parameters:
xslName - The name of the file that contains the xsl stylesheet.
in - The reader that passes the xml to be transformed
out - The writer for the transformed output

makeStore

protected org.exolab.castor.jdo.JDO makeStore(java.lang.String name,
                                              java.lang.String configUrl)

©   O R C A   S y s t e m s