Package edu.ubb.warp.exception

Examples of edu.ubb.warp.exception.DAOException


      statement.setInt(5, request.getProjectID());
      statement.setBoolean(6, request.isRejected());
      statement.setInt(7, request.getRequestID());
      statement.executeUpdate();
    } catch (SQLException e) {
      throw new DAOException();
    }
  }
View Full Code Here


    } catch (SQLException e) {
      try {
        con.rollback(save1);
        con.setAutoCommit(true);
      } catch (SQLException e1) {
        throw new DAOException();
      }
      throw new DAOException();
    }
  }
View Full Code Here

      ResultSet result = statement.executeQuery();
      while (result.next()) {
        requests.add(getRequestFromResult(result));
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return requests;
  }
View Full Code Here

      statement.setBoolean(1, visible);
      statement.setInt(2, resourceID);
      statement.setInt(3, requestID);
      statement.executeUpdate();
    } catch (SQLException e) {
      throw new DAOException();
    }
  }
View Full Code Here

        } else {
          return false;
        }
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return false;
  }
View Full Code Here

        resourceType = getResourceTypeFromResult(result);
      } else {
        throw new ResourceTypeNotFoundException();
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return resourceType;
  }
View Full Code Here

      PreparedStatement statement = JdbcConnection.getConnection()
          .prepareStatement(command);
      statement.setInt(1, resourceType.getResourceTypeID());
      statement.executeUpdate();
    } catch (SQLException e) {
      throw new DAOException();
    }
  }
View Full Code Here

      ResultSet result = statement.executeQuery();
      while (result.next()) {
        resourceTypes.add(getResourceTypeFromResult(result));
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return resourceTypes;
  }
View Full Code Here

        resourceType = getResourceTypeFromResult(result);
      } else {
        throw new ResourceTypeNotFoundException();
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return resourceType;
  }
View Full Code Here

        status = getStatusFromResult(result);
      } else {
        throw new StatusNotFoundException();
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return status;
  }
View Full Code Here

TOP

Related Classes of edu.ubb.warp.exception.DAOException

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.