|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManageableCollection
OJB can handle java.util.Collection as well as user defined collection classes as collection attributes in persistent classes. In order to collaborate with the OJB mechanisms these collection must provide a minimum protocol as defined by this interface ManageableCollection. The methods have a prefix "ojb" that indicates that these methods are "technical" methods, required by OJB and not to be used in business code.
Method Summary | |
---|---|
void |
afterStore(PersistenceBroker broker)
A callback method to implement 'removal-aware' (track removed objects and delete them by its own) collection implementations. |
void |
ojbAdd(Object anObject)
Adds a single object to the Collection. |
void |
ojbAddAll(ManageableCollection otherCollection)
Adds another collection to this collection. |
Iterator |
ojbIterator()
Returns an iterator over all elements in the collection. |
Method Detail |
---|
void ojbAdd(Object anObject)
anObject
- The object to addvoid ojbAddAll(ManageableCollection otherCollection)
otherCollection
- The added collectionIterator ojbIterator()
void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker
PersistenceBrokerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |