use of fi.otavanopisto.pyramus.dao.grading.CreditVariableDAO in project pyramus by otavanopisto.
the class GradingService method getCreditVariable.
public String getCreditVariable(@WebParam(name = "creditId") Long creditId, @WebParam(name = "key") String key) {
CreditDAO creditDAO = DAOFactory.getInstance().getCreditDAO();
CreditVariableDAO creditVariableDAO = DAOFactory.getInstance().getCreditVariableDAO();
Credit credit = creditDAO.findById(creditId);
return creditVariableDAO.findByCreditAndKey(credit, key);
}
use of fi.otavanopisto.pyramus.dao.grading.CreditVariableDAO in project pyramus by otavanopisto.
the class GradingService method setCreditVariable.
public void setCreditVariable(@WebParam(name = "creditId") Long creditId, @WebParam(name = "key") String key, @WebParam(name = "value") String value) {
CreditDAO creditDAO = DAOFactory.getInstance().getCreditDAO();
CreditVariableDAO creditVariableDAO = DAOFactory.getInstance().getCreditVariableDAO();
Credit credit = creditDAO.findById(creditId);
creditVariableDAO.setCreditVariable(credit, key, value);
}
Aggregations