org.ogf.graap.wsag.server.persistence
Interface IAgreementFactoryHome

All Superinterfaces:
IEngineComponent
All Known Implementing Classes:
AbstractWSAG4JPersistence, DatabaseWSAG4JPersistence, SimpleWSAG4JPersistence, WSAG4JPersistenceFacade

public interface IAgreementFactoryHome
extends IEngineComponent

AgreementFactoryPersistence

Author:
Oliver Waeldrich

Method Summary
 PersistentAgreementFactory find(String factoryId)
          Finds an agreement factory with a given id.
 PersistentAgreementFactory[] list()
          Lists all agreement factories.
 void remove(String factoryId)
          Removes the factory with the given ID.
 void saveAgreementFactories(PersistentAgreementFactory[] factories)
          Deprecated.  
 
Methods inherited from interface org.ogf.graap.wsag.server.api.IEngineComponent
getEngineConfiguration, initialize, setEngineConfiguration
 

Method Detail

find

PersistentAgreementFactory find(String factoryId)
                                throws Exception
Finds an agreement factory with a given id.

Parameters:
factoryId - ID of the agreement factory.
Returns:
the factory with the given id
Throws:
Exception - indicates an exception while loading the factory from the database

list

PersistentAgreementFactory[] list()
                                  throws Exception
Lists all agreement factories.

Returns:
List of all agreement factories.
Throws:
Exception - indicates an exception while loading the factories from the database

remove

void remove(String factoryId)
            throws Exception
Removes the factory with the given ID.

Parameters:
factoryId - ID of the factory to remove.
Throws:
Exception - indicates an exception while removing the factory from the database

saveAgreementFactories

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.