Package com.centraview.report.ejb.entity

Examples of com.centraview.report.ejb.entity.ReportLocalHome


   * @param reportIds int[] array of report ids
   */
  public void delete(int[] reportIds)
  {
    try {
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal report = null;
      int index = 0;
      try {
        for (int i = 0; i < reportIds.length; i++) {
          index = reportIds[i];
          report = reportHome.findByPrimaryKey(new ReportPK(index, this.dataSource));
          report.remove();
        }
      } catch (ObjectNotFoundException e) {
        throw new EJBException("Report object not found, id = " + index);
      }
View Full Code Here


   */
  public ReportVO getStandardReport(int userId, int reportId)
  {
    try {
      ReportVO reportVO = new ReportVO();
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportContentLocalHome reportContentHome = EntityHomeFactory.getReportContentLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));

      reportVO.setDescription(reportLocal.getDescription());
      reportVO.setModuleId(reportLocal.getModuleId());
      reportVO.setName(reportLocal.getName());
      reportVO.setReportId(reportId);
View Full Code Here

   */
  public int updateStandardReport(int userId, ReportVO reportVO, boolean saveName)
  {
    try {
      int reportId = 0;
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportVO.getReportId(), this.dataSource));

      if (saveName) {
        reportLocal.setDescription(reportVO.getDescription());
        reportLocal.setModuleId(reportVO.getModuleId());
        reportLocal.setName(reportVO.getName());
View Full Code Here

   * @return int
   */
  public int addAdHocReport(int userId, ReportVO reportVO)
  {
    try {
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportContentLocalHome reportContentHome = EntityHomeFactory.getReportContentLocalHome();
      ReportContentLocal reportContentLocal = null;
      ReportContentVO field = null;
      int n = 0;
      int reportId = 0;
      short seqNumber = 0;
      Byte sortSeq = null;

      Timestamp today = new Timestamp(System.currentTimeMillis());
      ReportLocal reportLocal = reportHome.create(today, reportVO.getFrom(), reportVO.getTo(), reportVO.getDescription(), new Integer(userId), null,
          reportVO.getModuleId(), reportVO.getName(), ReportConstants.ADHOC_REPORT_CODE, null, this.dataSource);
      reportId = reportLocal.getReportId();
      ArrayList selectedFields = reportVO.getSelectedFields();
      n = selectedFields.size();
      for (int i = 0; i < n; i++) {
View Full Code Here

    ArrayList results = new ArrayList();
    ArrayList resultLine = null;
    CVDal dataAccessLayer = new CVDal(this.dataSource);
    ResultSet resultSet = null;
    try {
      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));
      reportResult.setReportId(reportLocal.getReportId());
      reportResult.setModuleId(reportLocal.getModuleId());
      reportResult.setName(reportLocal.getName());
      reportResult.setSearchCriteria(getSearchCriteriaString(userId, reportId));
      Date dateFrom = reportLocal.getDateFrom();
View Full Code Here

      AdvancedSearchLocalHome cfh = (AdvancedSearchLocalHome) javax.rmi.PortableRemoteObject.narrow(oh,
          com.centraview.advancedsearch.AdvancedSearchLocalHome.class);
      AdvancedSearchLocal localAdvancedSearch = (AdvancedSearchLocal) cfh.create();
      localAdvancedSearch.setDataSource(this.dataSource);

      ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
      ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));
      resultVO.setReportId(reportLocal.getReportId());
      resultVO.setModuleId(reportLocal.getModuleId());
      resultVO.setName(reportLocal.getName());
      resultVO.setSearchCriteria(getSearchCriteriaString(userId, reportId));
      // get report dates
View Full Code Here

TOP

Related Classes of com.centraview.report.ejb.entity.ReportLocalHome

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.