Package br.jus.tjrn.arq.exception

Examples of br.jus.tjrn.arq.exception.ServiceDataAccessException


  @Override
    public T findById(Serializable id) {
      try {
          return dao.findById(id);
        } catch (DataAccessException e) {
            throw new ServiceDataAccessException(e);
        }
  }
View Full Code Here


    @Override
    public void insert(T entity) throws ServiceBusinessException {
        try {
            dao.insert(entity);
        } catch (DataAccessException e) {
            throw new ServiceDataAccessException(e);
        } catch (PersistenceValidateException e) {
            throw new ServiceBusinessException(e);
        }
    }
View Full Code Here

    @Override
    public void update(T entity) throws ServiceBusinessException {
        try {
            dao.update(entity);
        } catch (DataAccessException e) {
            throw new ServiceDataAccessException(e);
        } catch (PersistenceValidateException e) {
            throw new ServiceBusinessException(e);
        }
    }
View Full Code Here

           
            callback.execute();
           
        } catch (DataAccessException e) {
            e.printStackTrace();
            throw new ServiceDataAccessException(e);
        } catch (PersistenceValidateException e) {
            e.printStackTrace();
            throw new ServiceBusinessException(e);
        } catch (EmailServiceException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of br.jus.tjrn.arq.exception.ServiceDataAccessException

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.