Examples of commitTransaction()


Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                   
                    message.decrementReferenceCount();
                   
                    // Commit the batch if it's getting too big
                    if( size >= maxCheckpointMessageAddSize ) {
                        persitanceAdapter.commitTransaction(context);
                        persitanceAdapter.beginTransaction(context);
                        size=0;
                    }
                   
                }
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                        size=0;
                    }
                   
                }

                persitanceAdapter.commitTransaction(context);
                persitanceAdapter.beginTransaction(context);

                // Checkpoint the removed messages.
                iterator = cpRemovedMessageLocations.iterator();
                while (iterator.hasNext()) {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

    conControl.setReturnValue(false, 1);
    pb.beginTransaction();
    pbControl.setVoidCallable(1);
    pb.delete(entity);
    pbControl.setVoidCallable(1);
    pb.commitTransaction();
    pbControl.setVoidCallable(1);
    pb.close();
    pbControl.setReturnValue(true, 1);

    pbControl.replay();
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

    conControl.setReturnValue(false, 1);
    pb.beginTransaction();
    pbControl.setVoidCallable(1);
    pb.delete(entity);
    pbControl.setVoidCallable(1);
    pb.commitTransaction();
    pbControl.setVoidCallable(1);
    pb.close();
    pbControl.setReturnValue(true, 1);

    pbControl.replay();
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

    pb1Control.setVoidCallable(1);
    pb2.serviceConnectionManager();
    pb2Control.setReturnValue(cm, 2);
    pb2.beginTransaction();
    pb2Control.setVoidCallable(1);
    pb2.commitTransaction();
    pb2Control.setVoidCallable(1);
    pb2.close();
    pb2Control.setReturnValue(true, 1);
    pb1.commitTransaction();
    pb1Control.setVoidCallable(1);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

    conControl.setReturnValue(false, 1);
    pb.beginTransaction();
    pbControl.setVoidCallable(1);
    pb.delete(entity);
    pbControl.setVoidCallable(1);
    pb.commitTransaction();
    pbControl.setVoidCallable(1);
    pb.close();
    pbControl.setReturnValue(true, 1);

    dsControl.replay();
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

        {
            broker = PersistenceBrokerFactory.defaultPersistenceBroker();

            broker.beginTransaction();
            broker.store(product);
            broker.commitTransaction();
        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

            broker.beginTransaction();
            for (int idx = 0; idx < products.length; idx++)
            {
                broker.store(products[idx]);
            }
            broker.commitTransaction();
        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

                broker.store(result);
                // alternative, more performant:
                // broker.store(result, ObjectModificationDefaultImpl.UPDATE);

                broker.commitTransaction();
                isSold = true;
            }
        }
        catch (PersistenceBrokerException ex)
        {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

            if (result != null)
            {
                broker.beginTransaction();
                broker.delete(result);
                broker.commitTransaction();
                isDeleted = true;
            }
        }
        catch (PersistenceBrokerException ex)
        {
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.