Package com.dbxml.db.core.transaction

Examples of com.dbxml.db.core.transaction.Transaction.commit()


         Transaction tx = new Transaction();
         try {
            long p = fileHeader.getRootPage();
            rootInfo = new BTreeRootInfo(p);
            rootNode = getBTreeNode(tx, rootInfo, p, null);
            tx.commit();
            return true;
         }
         catch ( DBException e ) {
            tx.cancel();
            throw e;
View Full Code Here


            rootNode = new BTreeNode(rootInfo, getPage(tx, p));
            rootNode.ph.setStatus(LEAF);
            rootNode.setValues(new Value[0]);
            rootNode.setPointers(new long[0]);
            rootNode.write(tx);
            tx.commit();
            close();
            return true;
         }
         catch ( DBException e ) {
            tx.cancel();
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.