ContextCommit.categorizeFlattenedDeletesAndCreateBatches and optimistic locking

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Feb 16 2005 - 22:36:55 EST

  • Next message: Kevin Menard: "Re: Objections to changing build-tests.xml to default to hsqldb embedded?"

    Anyone have any ideas about optimistic locking and deleting flattened
    relationships?
    I'm not sure what to do about these, so I explicitly don't do optimistic
    locking on them.

    This is the only open issue with optimistic locking on deletes. I'm
    committing changes to cvs to handle regular optimistic locking on deletes.

                DeleteBatchQuery relationDeleteQuery = (DeleteBatchQuery)
    batchesByDbEntity
                        .get(flattenedEntity);
                if (relationDeleteQuery == null) {
                    boolean optimisticLocking = false;
                    relationDeleteQuery = new DeleteBatchQuery(flattenedEntity,
    50);
                    
    relationDeleteQuery.setUsingOptimisticLocking(optimisticLocking);
                    relationDeleteQuery.setLoggingLevel(logLevel);
                    batchesByDbEntity.put(flattenedEntity, relationDeleteQuery);
                }



    This archive was generated by hypermail 2.0.0 : Wed Feb 16 2005 - 22:36:08 EST