Examples of lockAndRegister()


Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

            {
                prepareRealSubject(tx.getBroker());
                if(realSubject != null)
                {
                    RuntimeObject rt = new RuntimeObject(realSubject, tx, false);
                    tx.lockAndRegister(rt, Transaction.READ, tx.getRegistrationList());
                }
            }
            else
            {
                PBKey aPbKey = getPBKey();
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

        TransactionImpl tx = dlist.getTransaction();
        if (tx != null)
        {
            RuntimeObject rt = new RuntimeObject(entry, tx, true);
            tx.lockAndRegister(rt, Transaction.WRITE, false, tx.getRegistrationList());
        }
    }

    /**
     * @see java.util.ListIterator#hasNext()
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

            // if we are in a transaction: get locks !
            TransactionImpl tx = getTransaction();
            if ((tx != null) && (tx.isOpen()))
            {
                RuntimeObject rt = new RuntimeObject(this, tx);
                tx.lockAndRegister(rt, Transaction.WRITE, false);

                tx.lock(o, Transaction.READ);

                rt = new RuntimeObject(entry, tx, true);
                tx.lockAndRegister(rt, Transaction.WRITE, false);
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

                tx.lockAndRegister(rt, Transaction.WRITE, false);

                tx.lock(o, Transaction.READ);

                rt = new RuntimeObject(entry, tx, true);
                tx.lockAndRegister(rt, Transaction.WRITE, false);
            }
            return true;
        }
        else
        {
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

            {
                prepareRealSubject(tx.getBroker());
                if(realSubject != null)
                {
                    RuntimeObject rt = new RuntimeObject(realSubject, tx, false);
                    tx.lockAndRegister(rt, Transaction.WRITE, true);
                    tx.lockAndRegisterCleanup();
                }
            }
            else
            {
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

        // if we are in a transaction: acquire locks !
        TransactionImpl tx = getTransaction();
        if (checkForOpenTransaction(tx))
        {
            RuntimeObject rt = new RuntimeObject(this, tx);
            tx.lockAndRegister(rt, Transaction.WRITE, false);

            tx.lock(element, Transaction.READ);

            rt = new RuntimeObject(entry, tx, true);
            tx.lockAndRegister(rt, Transaction.WRITE, false);
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

            tx.lockAndRegister(rt, Transaction.WRITE, false);

            tx.lock(element, Transaction.READ);

            rt = new RuntimeObject(entry, tx, true);
            tx.lockAndRegister(rt, Transaction.WRITE, false);
        }

        // changing the position markers of entries:
        int offset = 0;
        try
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

        {
            TransactionImpl tx = getTransaction();
            if ((tx != null) && (tx.isOpen()))
            {
                RuntimeObject rt = new RuntimeObject(this, tx);
                tx.lockAndRegister(rt, Transaction.WRITE, false);

                tx.lock(key, Transaction.READ);
                tx.lock(value, Transaction.READ);

                rt = new RuntimeObject(entry, tx, true);
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionImpl.lockAndRegister()

                tx.lock(key, Transaction.READ);
                tx.lock(value, Transaction.READ);

                rt = new RuntimeObject(entry, tx, true);
                tx.lockAndRegister(rt, Transaction.WRITE, false);
            }
            return null;
        }
        else
        {
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.