org.ogf.graap.wsag.server.persistence.impl
Class DatabaseWSAG4JPersistence
java.lang.Object
org.ogf.graap.wsag.server.api.EngineComponent
org.ogf.graap.wsag.server.persistence.impl.AbstractWSAG4JPersistence
org.ogf.graap.wsag.server.persistence.impl.DatabaseWSAG4JPersistence
- All Implemented Interfaces:
- IEngineComponent, IAgreementFactoryHome
public class DatabaseWSAG4JPersistence
- extends AbstractWSAG4JPersistence
- Author:
- T.Weuffel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseWSAG4JPersistence
public DatabaseWSAG4JPersistence()
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.