Package org.dedeler.template.exception

Examples of org.dedeler.template.exception.ApiDaoLayerException


      Long l = (Long) sessionFactory.getCurrentSession().save(t);
      return l;
    }
    catch (DataIntegrityViolationException e) {
      logger.error("DataIntegrityViolationException", e);
      throw new ApiDaoLayerException(e);
    }
    catch (Exception e) {
      logger.error("Exception", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here


      sessionFactory.getCurrentSession().merge(t);
      return true;
    }
    catch (DataIntegrityViolationException e) {
      logger.error("DataIntegrityViolationException", e);
      throw new ApiDaoLayerException(e);
    }
    catch (Exception e) {
      logger.error("Exception", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here

    try {
      return (T) createCriteria(persistentClass).add(Restrictions.eq("id", id)).uniqueResult();
    }
    catch (Exception e) {
      logger.error("Exception", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here

      sessionFactory.getCurrentSession().update(t);
      return true;
    }
    catch (DataIntegrityViolationException e) {
      logger.error("DataIntegrityViolationException", e);
      throw new ApiDaoLayerException(e);
    }
    catch (Exception e) {
      logger.error("DataIntegrityViolationException", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here

      sessionFactory.getCurrentSession().save(t);
      return true;
    }
    catch (DataAccessException e) {
      logger.error("DataAccessException", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here

      sessionFactory.getCurrentSession().delete(t);
      return true;
    }
    catch (DataAccessException e) {
      logger.error("DataAccessException", e);
      throw new ApiDaoLayerException(e);
    }
  }
View Full Code Here

        logger.error(cv.getMessage());
        logger.error(cv.toString());
        logger.error(cv.getInvalidValue().toString());
        logger.error(cv.getMessageTemplate());
      }
      throw new ApiDaoLayerException(new ValidationException("Validation failed: " + cv.getMessage()));
    }
  }
View Full Code Here

TOP

Related Classes of org.dedeler.template.exception.ApiDaoLayerException

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.