public void deleteReportParameter(ReportParameter reportParameter) throws ProviderException {
   try {
     hibernateProvider.delete(reportParameter);
   } catch (ConstraintException ce) {
     throw new ProviderException(LocalStrings.ERROR_PARAMETER_DELETION);
   }
 }
  @SuppressWarnings("unchecked")
  public List<ReportParameter> getReportParameters() throws ProviderException {
    String fromClause =
        "from org.efs.openreports.objects.ReportParameter reportParameter order by reportParameter.name ";

    return (List<ReportParameter>) hibernateProvider.query(fromClause);
  }
  public ReportParameter getReportParameter(String name) throws ProviderException {
    Session session = null;

    try {
      session = hibernateProvider.openSession();

      Criteria criteria = session.createCriteria(ReportParameter.class);
      criteria.add(Restrictions.eq("name", name));

      return (ReportParameter) criteria.uniqueResult();
    } catch (HibernateException he) {
      throw new ProviderException(he);
    } finally {
      hibernateProvider.closeSession(session);
    }
  }
 public void updateReportParameter(ReportParameter reportParameter) throws ProviderException {
   hibernateProvider.update(reportParameter);
 }
 public ReportParameter insertReportParameter(ReportParameter reportParameter)
     throws ProviderException {
   return (ReportParameter) hibernateProvider.save(reportParameter);
 }
 public ReportParameter getReportParameter(Integer id) throws ProviderException {
   return (ReportParameter) hibernateProvider.load(ReportParameter.class, id);
 }