Package com.dbxml.db.core.transaction

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


      Transaction tx = new Transaction();
      try {
         return ResultSetWrapper.toText(col.queryCollection(tx, style, query, new NamespaceMap(nsMap)));
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here


      Transaction tx = new Transaction();
      try {
         return ResultSetWrapper.toText(col.queryDocument(tx, style, query, new NamespaceMap(nsMap), key));
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

         try {
            tx.commit();
         }
         catch ( DBException e ) {
            /** @todo This is VERY bad */
            tx.cancel();
            throw e;
         }

         closeTransactionLog();

View Full Code Here

            try {
               tx.commit();
            }
            catch ( DBException e ) {
               /** @todo This is VERY bad */
               tx.cancel();
               throw e;
            }

            closeTransactionLog();

View Full Code Here

          domAdapter.setDocument(tx, SYNCID_XML, doc);
            }
         }
         catch ( Exception e ) {
            try {
               tx.cancel();
            }
            catch ( DBException ex ) {
               ex.printStackTrace(System.err);
            }
View Full Code Here

      try {
         XMLSerializableAdapter col = getGroupsCollection();
         col.remove(tx, group);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
View Full Code Here

      for ( int i = 0; i < keys.length; i++ )
        result[i] = keys[i].toString();
         return result;
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
View Full Code Here

         while ( res.next() )
            s.add(res.getResultKey().toString());
      return (String[])s.toArray(EmptyStrings);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
View Full Code Here

      for ( int i = 0; i < keys.length; i++ )
        result[i] = keys[i].toString();
         return result;
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here

         }

      return doc;
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
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.