Package com.sun.sgs.service.store.db

Examples of com.sun.sgs.service.store.db.DbTransaction.abort()


    Level.SEVERE, e, "DataStore initialization failed");
      throw e;
  } finally {
      if (dbTxn != null && !done) {
    try {
        dbTxn.abort();
    } catch (RuntimeException e) {
        logger.logThrow(Level.FINE, e, "Exception during abort");
    }
      }
  }
View Full Code Here


        dbTxn, newLastObjectId);
    done = true;
    dbTxn.commit();
      } finally {
    if (!done) {
        dbTxn.abort();
    }
      }
      objectIdInfo = txnInfo.createObjectIdInfo(
    newNextObjectId, newLastObjectId);
  }
View Full Code Here

      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /** {@inheritDoc} */
 
View Full Code Here

      result = classesDb.get(dbTxn, key, false);
      done = true;
      dbTxn.commit();
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
  if (result != null) {
      return result;
  } else {
View Full Code Here

      done = true;
      dbTxn.commit();
      return id;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /** Converts a database key to a class ID. */
 
View Full Code Here

      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /**
 
View Full Code Here

    Level.SEVERE, e, "DataStore initialization failed");
      throw e;
  } finally {
      if (dbTxn != null && !done) {
    try {
        dbTxn.abort();
    } catch (RuntimeException e) {
        logger.logThrow(Level.FINE, e, "Exception during abort");
    }
      }
  }
View Full Code Here

        dbTxn, newLastObjectId);
    done = true;
    dbTxn.commit();
      } finally {
    if (!done) {
        dbTxn.abort();
    }
      }
      objectIdInfo = txnInfo.createObjectIdInfo(
    newNextObjectId, newLastObjectId);
  }
View Full Code Here

      done = true;
      dbTxn.commit();
      return id;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /**
 
View Full Code Here

      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /** Converts a database key to a class ID. */
 
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.