Package org.apache.ojb.broker.accesslayer

Examples of org.apache.ojb.broker.accesslayer.ConnectionManagerIF.executeBatch()


            // 5. write objects.
            writeAllEnvelopes(reuse);

            // 6. execute batch
            connMan.executeBatch();

            // 7. Update all Envelopes to new CleanState
            prepareForReuse(reuse);

            // 6. commit cleanup
View Full Code Here


                    {
                        _pb.delete(entry.cacheObject);
                    }
                    entry.state = state.commit();
                }
                connMan.executeBatch();
            }
            finally
            {
                connMan.setBatchMode(saveBatchMode);
            }
View Full Code Here

            ProductGroup pg1 = new ProductGroup();
            pg1.setId(20001);
            pg1.setName("BatchModeTest ProductGroup #1");
            broker.store(pg1);

            conMan.executeBatch();

            Article a1 = new Article();
            a1.setArticleId(20001);
            a1.setArticleName("BatchModeTest Article #1");
            a1.setProductGroup(pg1);
View Full Code Here

            a3.setArticleName("BatchModeTest Article #3");
            a3.setProductGroup(pg3);
            pg3.add(a3);
            broker.store(a3);

            conMan.executeBatch();

            broker.delete(a1);

            conMan.executeBatch();
View Full Code Here

            conMan.executeBatch();

            broker.delete(a1);

            conMan.executeBatch();

            broker.delete(pg1);
            broker.delete(a2);
            broker.delete(pg2);
            broker.delete(a3);
View Full Code Here

            pg3.getAllArticles().clear();
            broker.store(pg3);
            broker.delete(pg3);
            broker.store(pg3);
            broker.delete(pg3);
            conMan.executeBatch();
        }
        finally
        {
            broker.commitTransaction();
            conMan.setBatchMode(saveBatchMode);
View Full Code Here

            Zoo zoo1 = new Zoo();
            zoo1.setZooId(20001);
            zoo1.setName("BatchModeTest Zoo #1");
            broker.store(zoo1);

            conMan.executeBatch();

            Mammal m1 = new Mammal();
            m1.setAnimalId(20001);
            m1.setName("BatchModeTest Mammal #1");
            m1.setAge(5);
View Full Code Here

            m3.setNumLegs(4);
            m3.setZooId(zoo3.getZooId());
            zoo3.getAnimals().add(m3);
            broker.store(m3);

            conMan.executeBatch();

            broker.delete(m1);

            conMan.executeBatch();
View Full Code Here

            conMan.executeBatch();

            broker.delete(m1);

            conMan.executeBatch();

            broker.delete(zoo1);
            broker.delete(m2);
            broker.delete(zoo2);
            broker.delete(m3);
View Full Code Here

            broker.delete(m2);
            broker.delete(zoo2);
            broker.delete(m3);
            broker.delete(zoo3);

            conMan.executeBatch();
        }
        finally
        {
            broker.commitTransaction();
            conMan.setBatchMode(saveBatchMode);
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.