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

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


                    _entityClass,
                    id);
            return entity;
        } catch (Throwable t) {
            final Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here


                    em, _entityClass, filter, orderBy, params,
                    firstResult, maxResults, _useCache);
            return entityList;
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

            final List<T> entityList = getContext().find(
                    em, _entityClass, _useCache, ids);
            return entityList;
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

            final List<T> entityList = getContext().getList(
                    em, _entityClass, qlStatement, params, _useCache);
            return entityList;
        } catch (Throwable t) {
            Throwable cause = ExceptionUtils.getRealCause(t);
            throw new DaoException(cause.getMessage(), cause);
        }
    }
View Full Code Here

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

    public T merge(final EntityManager em, T entity) throws DaoException {
        try {
            final Object result = getContext().merge(em, _entityClass, entity);
            return (T) result;
        } catch (Throwable t) {
            throw new DaoException(t.getMessage(), t);
        }
    }
View Full Code Here

    public void refresh(final EntityManager em, T entity) throws DaoException {
        try {
            this.getContext().refresh(em, _entityClass, entity);
        } catch (Throwable t) {
            throw new DaoException(t.getMessage(), t);
        }
    }
View Full Code Here

    public void save(final EntityManager em,
            T entity) throws DaoException {
        try {
            this.getContext().save(em, entity);
        } catch (Throwable t) {
            throw new DaoException(t.getMessage(), t);
        }
    }
View Full Code Here

            for (final T entity : entities) {
                this.getContext().save(em,
                        entity);
            }
        } catch (Throwable t) {
            throw new DaoException(t.getMessage(), t);
        }
    }
View Full Code Here

            long id) throws DaoException {
        try {
            getContext().remove(em, _entityClass, id);
        } 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.