Package org.sf.bee.persistence.dao.exceptions

Examples of org.sf.bee.persistence.dao.exceptions.DaoException


            final T detached) throws DaoException {
        try {
            getContext().remove(em, _entityClass, detached);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here


            final Collection<T> entityList) throws DaoException {
        try {
            return getContext().removeAll(em, _entityClass, entityList);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

            final Map<String, Object> params) throws DaoException {
        try {
            return getContext().removeAll(em, _entityClass, filter, params);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

            final String statement) throws DaoException {
        try {
            return getContext().execute(em, _entityClass, statement, _useCache);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

        try {
            return getContext().execute(em, _entityClass,
                    statement, params, _useCache);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(t.getMessage(), cause);
        }
    }
View Full Code Here

        try {
            return getContext().executeSQL(em, _entityClass,
                    statement, _useCache);
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.persistence.dao.exceptions.DaoException

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.