Package org.apache.ojb.odmg

Examples of org.apache.ojb.odmg.RuntimeObject


            if(tx != null && tx.isOpen())
            {
                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


        elements.add(index, entry);
        // 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);
        }

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

        if (ok)
        {
            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);
                tx.lockAndRegister(rt, Transaction.WRITE, false);
            }
            return null;
        }
        else
View Full Code Here

TOP

Related Classes of org.apache.ojb.odmg.RuntimeObject

Copyright © 2018 www.massapicom. 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.