Package edu.uga.galileo.voci.exception

Examples of edu.uga.galileo.voci.exception.NoSuchAuditLogRecordException


    try {
      Configuration.getConnectionPool().executeQuery(qp);
      return createObjectsFromQueryParser(AuditLog.class, qp);
    } catch (SQLException e) {
      Logger.warn("Audit logs records couldn't be retrieved", e);
      throw new NoSuchAuditLogRecordException(
          "SQLException prevented audit log retrieval: "
              + e.getMessage());
    }
  }
View Full Code Here


    qp.addPreparedStmtElementDefinition(update);

    try {
      Configuration.getConnectionPool().executeQuery(qp);
      if (qp.getResultCount() < 1) {
        throw new NoSuchAuditLogRecordException(
            "No such record exists.");
      }
      AuditLog result = createObjectFromQueryParser(AuditLog.class, qp);
      // repopulate the next four bits from the method call
      result.setProjectId(projectId);
      result.setContentType(contentType);
      result.setContentId(contentId);
      result.setUpdateDate(update);
      return result;
    } catch (SQLException e) {
      Logger.warn("Audit logs records couldn't be retrieved", e);
      throw new NoSuchAuditLogRecordException(
          "SQLException prevented audit log retrieval: "
              + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.exception.NoSuchAuditLogRecordException

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.