Examples of NoSuchEntityException


Examples of com.amazonaws.services.identitymanagement.model.NoSuchEntityException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("NoSuchEntity"))
            return null;

        NoSuchEntityException e = (NoSuchEntityException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.google.gerrit.common.errors.NoSuchEntityException

          b = load(bTree, entry.getNewName());
        }
        return b.getString(line - 1);

      default:
        throw new NoSuchEntityException();
    }
  }
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

    try {
      dataAccessLayer.setSql("reports.loadreportcontent");
      dataAccessLayer.setInt(1, reportContentId);
      resultSet = dataAccessLayer.executeQueryNonParsed();
      if (!resultSet.next()) {
        throw new NoSuchEntityException("ReportContent Row does not exist");
      }
      this.reportId = resultSet.getInt(1);
      this.fieldId = resultSet.getInt(2);
      this.tableId = resultSet.getInt(3);
      this.sequenceNumber = resultSet.getByte(4);
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

      else {
        dataAccessLayer.setByte(6, sortOrderSequence.byteValue());
      }
      dataAccessLayer.setInt(7, reportContentId);
      if (dataAccessLayer.executeUpdate() < 1) {
        throw new NoSuchEntityException("Cannot store ReportContent");
      }
    }
    finally {
      dataAccessLayer.destroy();
      dataAccessLayer = null;
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

    try {
      dataAccessLayer.setSql("reports.loadreport");
      dataAccessLayer.setInt(1, reportId);
      resultSet = dataAccessLayer.executeQueryNonParsed();
      if (!resultSet.next()) {
        throw new NoSuchEntityException("Row does not exist");
      }
      this.moduleId = resultSet.getInt(1);
      this.name = resultSet.getString(2);
      this.description = resultSet.getString(3);
      this.createdBy = resultSet.getInt(4);
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

        dataAccessLayer.setInt(9, reportTypeId);
        dataAccessLayer.setRealDate(10, dateFrom);
        dataAccessLayer.setRealDate(11, dateTo);
        dataAccessLayer.setInt(12, reportId);
        if (dataAccessLayer.executeUpdate() < 1) {
          throw new NoSuchEntityException("Row does not exist");
        }
      } finally {
        dataAccessLayer.destroy();
        dataAccessLayer = null;
      }
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

    try {
      dataAccessLayer.setSqlQuery("SELECT reporttypename FROM reporttype WHERE reporttypeid = ?");
      dataAccessLayer.setInt(1, reportTypeId);
      resultSet = dataAccessLayer.executeQueryNonParsed();
      if (!resultSet.next()) {
        throw new NoSuchEntityException("Row does not exist");
      }
      this.reportTypeName = resultSet.getString(1);
      isModified = false;
    }
    catch(SQLException e) {
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

      try {
        dataAccessLayer.setSqlQuery("UPDATE reporttype SET reporttypename = ? WHERE reporttypeid = ?");
        dataAccessLayer.setString(1, reportTypeName);
        dataAccessLayer.setInt(2, reportTypeId);
        if (dataAccessLayer.executeUpdate() < 1) {
          throw new NoSuchEntityException("Row does not exist");
        }
      }
      finally {
        dataAccessLayer.destroy();
        dataAccessLayer = null;
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

            rs = ps.executeQuery();

            if(!rs.next())
            {
               throw new NoSuchEntityException("Row not found: " + pk);
            }

            value = field.loadArgumentResults(rs, 1);
         }
         catch(SQLException e)
View Full Code Here

Examples of javax.ejb.NoSuchEntityException

         rs = ps.executeQuery();

         if(!rs.next())
         {
            throw new NoSuchEntityException("Row not found: " + id);
         }

         return view.loadRow(rs, id, false);
      }
      catch(SQLException 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.