Examples of preFlush()


Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.preFlush()

                action = COMMIT;
            } else if (action == COMMIT) {
                endTx(pm);
                break;
            } else {
                pm.preFlush();
                break;
            }
        }

        if (action == PRESTORE) {
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.preFlush()

            map = pc.getDependentMap();
            assertEquals(2, map.size());
            assertEquals(repeat, (DependentFieldsPC) map.remove("repeat"));

            if (action == PRESTORE)
                pm.preFlush();
            else
                pm.flush();
            assertTrue(pm.isRemoved(repeat));

            // now after deleting on flush, assigning to another field and
View Full Code Here

Examples of org.hibernate.Interceptor.preFlush()

    @Override
    public void preFlush(Iterator entities) {
        List entityList = createList(entities);
        for (Iterator iterator = _interceptors.iterator(); iterator.hasNext();) {
            Interceptor interceptor = (Interceptor) iterator.next();
            interceptor.preFlush(entityList.iterator());
        }
    }
   
    /*
     * @see org.hibernate.EmptyInterceptor#postFlush(java.util.Iterator)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.