|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.util.OjbCollectionHelper
public class OjbCollectionHelper
Helper object to deal with persisting collections.
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
OjbCollectionHelper()
|
Method Summary | |
---|---|
private void |
cleanse(OjbCollectionAware template,
Collection<PersistableBusinessObject> origSource,
List<PersistableBusinessObject> unwantedItems)
This method deletes unwanted objects from the database as well as from the given input List |
private List<PersistableBusinessObject> |
findUnwantedElements(Collection<PersistableBusinessObject> fromList,
Collection<PersistableBusinessObject> controlList)
This method identifies items in the first List that are not contained in the second List. |
void |
processCollections(OjbCollectionAware template,
PersistableBusinessObject orig,
PersistableBusinessObject copy)
OJB RemovalAwareLists do not survive through the response/request lifecycle. |
void |
processCollections2(OjbCollectionAware template,
PersistableBusinessObject orig,
PersistableBusinessObject copy)
OJB RemovalAwareLists do not survive through the response/request lifecycle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public OjbCollectionHelper()
Method Detail |
---|
public void processCollections(OjbCollectionAware template, PersistableBusinessObject orig, PersistableBusinessObject copy)
orig
- id
- template
- public void processCollections2(OjbCollectionAware template, PersistableBusinessObject orig, PersistableBusinessObject copy)
orig
- id
- template
- private void cleanse(OjbCollectionAware template, Collection<PersistableBusinessObject> origSource, List<PersistableBusinessObject> unwantedItems)
origSource
- - list containing unwanted business objectsunwantedItems
- - business objects to be permanently removedtemplate
- private List<PersistableBusinessObject> findUnwantedElements(Collection<PersistableBusinessObject> fromList, Collection<PersistableBusinessObject> controlList)
fromList
- controlList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |