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

java.lang.Object
  extended by org.ogf.graap.wsag.server.api.EngineComponent
      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

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
doInitialize, find, hasChanged, list, remove, setChanged
 
Methods inherited from class org.ogf.graap.wsag.server.api.EngineComponent
getEngine, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 #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. All Rights Reserved.