org.ogf.graap.wsag.wsrf.persistence
Interface IWsAgreementFactoryHome

All Known Implementing Classes:
WsDatabaseWSAG4JPersistence

public interface IWsAgreementFactoryHome

Home interface of a web service agreement factory.

Author:
owaeld

Method Summary
 WsPersistentAgreementFactory find(String factoryId)
          Finds an agreement factory with a given id.
 WsPersistentAgreementFactory[] list()
          Lists all agreement factories.
 void remove(String factoryId)
          Removes the factory with the given ID.
 void saveAgreementFactories(WsPersistentAgreementFactory[] factories)
          Deprecated.  
 

Method Detail

find

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

Parameters:
factoryId - ID of the agreement factory.
Returns:
The factory.
Throws:
Exception - the agreement was not found

list

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

Returns:
List of all agreement factories.
Throws:
Exception - the agreements could not be listed, i.e. a database fault occurred

remove

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

Parameters:
factoryId - ID of the factory to remove.
Throws:
Exception - the factory could not removed at the persistence layer

saveAgreementFactories

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

Parameters:
factories - List of factories, which should be saved/persisted.
Throws:
Exception - the factories could not be saved at the persistence layer, i.e. due to database failure


Copyright © 2008-2012. All Rights Reserved.