Package com.dbxml.db.core.transaction

Examples of com.dbxml.db.core.transaction.Transaction


   }

   @Override
   public boolean create() throws DBException {
      if ( super.create() ) {
         Transaction tx = new Transaction();
         try {
            open();
            long p = fileHeader.getRootPage();
            rootInfo = new BTreeRootInfo(p);
            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();
            throw e;
         }
         catch ( Exception e ) {
            tx.cancel();
            e.printStackTrace(System.err);
            throw new FilerException(FaultCodes.COL_CANNOT_CREATE, e);
         }
      }
      return false;
View Full Code Here

TOP

Related Classes of com.dbxml.db.core.transaction.Transaction

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.