Package org.bigk.invoices.exceptions

Examples of org.bigk.invoices.exceptions.ServiceException


      Criteria crit = session.createCriteria(PaymentKind.class);
      list = crit.list();
     
    } catch (HibernateException ex) {
      logger.error("listAllItems()", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("listAllItems() - end - return value=" + CollectionUtils.size(list));
    }
View Full Code Here


    try {
      session = HibernateUtils.getCurrentSession();
      object = (PaymentKind) session.get(PaymentKind.class, id);
    } catch (HibernateException ex) {
      logger.error("getObject4Id(Long)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("getPaymentKind(Long) - end - return value=" + object);
    }
View Full Code Here

          + ", Long paymentKindId=" + paymentKindId + ") - start");
    }

    PaymentKind paymentKind = this.getPaymentKind(paymentKindId);
    if (paymentKind == null) {
      throw new ServiceException("No PaymentKind read for id: " + paymentKindId);
    }
    Date returnDate = calculatePaymentDate(soldDate, paymentKind.getValue());

    if (logger.isDebugEnabled()) {
      logger.debug("calculatePaymentDate(Date, Long) - end - return value=" + returnDate);
View Full Code Here

     
      list = crit.list();
     
    } catch (HibernateException ex) {
      logger.error("listAllItems()", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("listAllItems() - end - return value=" + CollectionUtils.size(list));
    }
View Full Code Here

      crit.setFirstResult(firstResult);
      crit.setMaxResults(maxResults);
      list = crit.list();
    } catch (HibernateException ex) {
      logger.error("listItems4Page(PurchaserFilter)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("listItems4Page(PurchaserFilter) - end - return value=" + CollectionUtils.size(list));
    }
View Full Code Here

    try {
      session = HibernateUtils.getCurrentSession();
      object = (Purchaser) session.get(Purchaser.class, id);
    } catch (HibernateException ex) {
      logger.error("getPurchaser(Long)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("getPurchaser(Long) - end - return value=" + object);
    }
View Full Code Here

    try {
      session = HibernateUtils.getCurrentSession();
      session.save(purchaser);
    } catch (HibernateException ex) {
      logger.error("savePurchaser(Purchaser)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("savePurchaser(Purchaser) - end");
    }
View Full Code Here

    try {
      session = HibernateUtils.getCurrentSession();
      session.update(purchaser);
    } catch (HibernateException ex) {
      logger.error("updatePurchaser(Purchaser)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("updatePurchaser(Purchaser) - end");
    }
View Full Code Here

    try {
      session = HibernateUtils.getCurrentSession();
      session.delete(purchaser);
    } catch (HibernateException ex) {
      logger.error("deletePurchaser(Purchaser)", ex);
      throw new ServiceException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("deletePurchaser(Purchaser) - end");
    }
View Full Code Here

TOP

Related Classes of org.bigk.invoices.exceptions.ServiceException

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.