org.ogf.graap.wsag.server.persistence.impl
Class DatabaseWSAG4JPersistence

java.lang.Object
  extended by org.ogf.graap.wsag.server.persistence.impl.AbstractWSAG4JPersistence
      extended by org.ogf.graap.wsag.server.persistence.impl.DatabaseWSAG4JPersistence
All Implemented Interfaces:
IEngineComponent, IAgreementFactoryHome

public class DatabaseWSAG4JPersistence
extends AbstractWSAG4JPersistence

Author:
T.Weuffel

Field Summary
protected  WSAG4JEngineConfigurationType[] config
          The wsag4j engine configuration.
 
Fields inherited from class org.ogf.graap.wsag.server.persistence.impl.AbstractWSAG4JPersistence
wsag4jConfiguration
 
Constructor Summary
DatabaseWSAG4JPersistence()
           
 
Method Summary
protected  PersistentAgreementFactory[] doLoad()
          Loads the agreement factories for this persistence layer.
 boolean doRemove(PersistentAgreementFactory factory)
          Removes a persistent factory from the persistence layer.
 void saveAgreementFactories(PersistentAgreementFactory[] factories)
          Deprecated.  
 
Methods inherited from class org.ogf.graap.wsag.server.persistence.impl.AbstractWSAG4JPersistence
find, getAgreementFactoryPrototype, getEngineConfiguration, hasChanged, initialize, list, remove, setChanged, setEngineConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected WSAG4JEngineConfigurationType[] config
The wsag4j engine configuration.

Constructor Detail

DatabaseWSAG4JPersistence

public DatabaseWSAG4JPersistence()
Method Detail

doLoad

protected PersistentAgreementFactory[] doLoad()
                                       throws PersistedResourceException
Description copied from class: AbstractWSAG4JPersistence
Loads the agreement factories for this persistence layer. The load method is invoked during the initialization process of the persistence layer (see AbstractWSAG4JPersistence.initialize()) or during a AbstractWSAG4JPersistence.find(String), AbstractWSAG4JPersistence.list() or AbstractWSAG4JPersistence.remove(String) operation

Specified by:
doLoad in class AbstractWSAG4JPersistence
Returns:
the loaded factories
Throws:
PersistedResourceException - indicates an error while loading the persistent factories

doRemove

public boolean doRemove(PersistentAgreementFactory factory)
                 throws PersistedResourceException
Removes a persistent factory from the persistence layer.

Specified by:
doRemove in class AbstractWSAG4JPersistence
Parameters:
factory - the factory to remove
Returns:
true if the factory was removed, otherwise false
Throws:
PersistedResourceException - indicates an error while removing the factory

saveAgreementFactories

@Deprecated
public void saveAgreementFactories(PersistentAgreementFactory[] factories)
                            throws Exception
Deprecated. 

Parameters:
factories - List of factories, which should be saved/persisted.
Throws:
Exception - indicates an exception while saving the factory in the database


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.