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

Examples of com.sun.sgs.service.store.db.DbDatabaseException


      if (status == SUCCESS) {
    return convertData(valueEntry.getData());
      } else if (status == NOTFOUND) {
    return null;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here


      valueEntry.setPartial(0, 0, true);
      OperationStatus status = db.get(
    BdbTransaction.getBdbTxn(txn), new DatabaseEntry(key),
    valueEntry, LockMode.RMW);
      if (status != SUCCESS && status != NOTFOUND) {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

  try {
      OperationStatus status = db.put(
    BdbTransaction.getBdbTxn(txn), new DatabaseEntry(key),
    new DatabaseEntry(value));
      if (status != SUCCESS) {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

      if (status == SUCCESS) {
    return true;
      } else if (status == KEYEXIST) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

      if (status == SUCCESS) {
    return true;
      } else if (status == NOTFOUND) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

      } else if (errorCode >= XA_RBBASE && errorCode <= XA_RBEND) {
    throw new TransactionAbortedException(
        "Transaction aborted: " + e.getMessage(), e);
      }
  }
  throw new DbDatabaseException(
      "Unexpected database exception: " + e, e);
    }
View Full Code Here

    isCurrent = true;
    return true;
      } else if (status == NOTFOUND) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

    isCurrent = true;
    return true;
      } else if (status == NOTFOUND) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

    isCurrent = true;
    return true;
      } else if (status == NOTFOUND) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

    isCurrent = true;
    return true;
      } else if (status == NOTFOUND) {
    return false;
      } else {
    throw new DbDatabaseException("Operation failed: " + status);
      }
  } catch (DatabaseException e) {
      throw BdbEnvironment.convertException(e, true);
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.service.store.db.DbDatabaseException

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.