Package com.dbxml.db.core.transaction

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


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


         }
         return user;
      }
      catch ( DBException e ) {
         try {
            tx.cancel();
         }
         catch ( DBException ex ) {
            ex.printStackTrace(System.err);
         }
         throw new InvalidUserException("Unknown User '"+userID+"'", e);
View Full Code Here

            storeGroup(g);
         }
         return g;
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
View Full Code Here

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

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

      try {
         XMLSerializableAdapter col = getContentCollection();
         col.setObject(tx, content.getPath(), content);
      }
      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

            storeContent(c);
         }
         return c;
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
       if ( tx.getStatus() == Transaction.ACTIVE )
           tx.commit();
View Full Code Here

            }
         }
      return (String[])roles.toArray(EmptyStrings);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here

         }
         return role;
      }
      catch ( DBException e ) {
         try {
            tx.cancel();
         }
         catch ( DBException ex ) {
            ex.printStackTrace(System.err);
         }
         throw new InvalidRoleException("Unknown Role '"+roleID+"'", e);
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.