|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.broker.SaveObjectsStrategy
Figure out the order that the persistent objects should be saved.
Constructor Summary | |
SaveObjectsStrategy()
Constructor for the SaveObjectsStrategy object |
Method Summary | |
boolean |
contains(java.lang.Object obj,
java.util.List aList)
Do an identity compare to determine if the List contains the object. |
RDBPersistence |
getRDBAdapter(Persistence object)
A utility method that simplifies code. |
void |
saveObjects(java.util.ArrayList objs)
Save all of the objects in the objs collection. |
protected int |
saveObjects(java.util.List objs,
java.util.ArrayList undoList,
int sizeOfLaterList,
int depth)
We may have several objects to save. |
protected boolean |
unsavedForeignKeys(AttributeTypeColumn[] fkColumns,
Persistence sourceObj)
Determines if in the collection of persistent objects if there exists an object that is neither transient nor 'saved'/persistent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SaveObjectsStrategy()
Method Detail |
public final RDBPersistence getRDBAdapter(Persistence object)
object
-
public void saveObjects(java.util.ArrayList objs) throws QueryException
objs
- The peristent objects to save.
QueryException
public boolean contains(java.lang.Object obj, java.util.List aList)
obj
- java.lang.Object The object for which we are lookingaList
- The list being searched.
protected int saveObjects(java.util.List objs, java.util.ArrayList undoList, int sizeOfLaterList, int depth) throws QueryException
objs
- The peristent objects to save. This list should shrink with
every recursive callundoList
- Those new objects that have been inserted into the database
will be added to this list.sizeOfLaterList
- depth
-
QueryException
#save
protected boolean unsavedForeignKeys(AttributeTypeColumn[] fkColumns, Persistence sourceObj)
fkColumns
- sourceObj
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |