com.mf.kennewick.broker
Interface IBroker
- All Known Implementing Classes:
- DatabaseBroker, EJBBroker
- public interface IBroker
- Author:
- Jeffrey Payne
Defines core behavior for all brokers regardless of implementation.
For each broker, a subinterface declaring its finders should be defined.
save
public void save(KennewickObject anObject,
ITransaction aTransaction)
throws java.lang.Exception
- Saves the object passed in to the database using the given transaction.
If aTransaction is null, then the object is automatically committed.
- Parameters:
anObject
- aTransaction
-
- Throws:
java.lang.Exception
delete
public void delete(KennewickObject anObject,
ITransaction aTransaction)
throws java.lang.Exception
- Throws:
java.lang.Exception
lazyLoadCollection
public java.util.Collection lazyLoadCollection(KennewickObject anObject,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
lazyLoadMap
public java.util.Map lazyLoadMap(KennewickObject anObject,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
lazyLoadChildObject
public KennewickObject lazyLoadChildObject(KennewickObject anObject,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
retrieveSingleObjectByID
public KennewickObject retrieveSingleObjectByID(java.lang.Class objectClass,
ObjectIdentifier anId,
ITransaction aTransaction)
throws java.lang.Exception
- Throws:
java.lang.Exception
retrieveAll
public java.util.Collection retrieveAll(java.lang.Class objectClass,
ITransaction aTransaction)
throws java.lang.Exception
- Throws:
java.lang.Exception
searchObjects
public java.util.Collection searchObjects(java.lang.String searchString)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004 Media Fortress, LLC, LLC. Licensed for commercial use under the Apache 2.0 License.