Package com.dbxml.db.core.transaction

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


         String roleID = role.getId();
         col.setObject(tx, roleID, role);
         roleCache.put(roleID, role);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here


            catch ( DTSMException e ) {
            }
         }
      }
      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 access;
      }
      catch ( DBException e ) {
         try {
            tx.cancel();
         }
         catch ( DBException ex ) {
            ex.printStackTrace(System.err);
         }
         throw new InvalidAccessException("Can't retrieve Access list for '"+path+"'", e);
View Full Code Here

         String path = access.getPath();
         col.setObject(tx, path, access);
         accessCache.put(path, access);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here

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

            rootNode = getBTreeNode(tx, rootInfo, p, null);
            tx.commit();
            return true;
         }
         catch ( DBException e ) {
            tx.cancel();
            throw e;
         }
      }
      else
         return false;
View Full Code Here

            tx.commit();
            close();
            return true;
         }
         catch ( DBException e ) {
            tx.cancel();
            throw e;
         }
         catch ( Exception e ) {
            tx.cancel();
            e.printStackTrace(System.err);
View Full Code Here

         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
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.