Package dbcontrollers.exceptions

Examples of dbcontrollers.exceptions.NonexistentEntityException


            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = trees.getId();
                if (findTrees(id) == null) {
                    throw new NonexistentEntityException("The trees with id " + id + " no longer exists.");
                }
            }
            throw ex;
        } finally {
            if (em != null) {
View Full Code Here


            Trees trees;
            try {
                trees = em.getReference(Trees.class, id);
                trees.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The trees with id " + id + " no longer exists.", enfe);
            }
            em.remove(trees);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = users.getId();
                if (findUsers(id) == null) {
                    throw new NonexistentEntityException("The users with id " + id + " no longer exists.");
                }
            }
            throw ex;
        } finally {
            if (em != null) {
View Full Code Here

            Users users;
            try {
                users = em.getReference(Users.class, id);
                users.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The users with id " + id + " no longer exists.", enfe);
            }
            em.remove(users);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = nodes.getId();
                if (findNodes(id) == null) {
                    throw new NonexistentEntityException("The nodes with id " + id + " no longer exists.");
                }
            }
            throw ex;
        } finally {
            if (em != null) {
View Full Code Here

            Nodes nodes;
            try {
                nodes = em.getReference(Nodes.class, id);
                nodes.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The nodes with id " + id + " no longer exists.", enfe);
            }
            em.remove(nodes);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = fields.getId();
                if (findFields(id) == null) {
                    throw new NonexistentEntityException("The fields with id " + id + " no longer exists.");
                }
            }
            throw ex;
        } finally {
            if (em != null) {
View Full Code Here

            Fields fields;
            try {
                fields = em.getReference(Fields.class, id);
                fields.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The fields with id " + id + " no longer exists.", enfe);
            }
            em.remove(fields);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

TOP

Related Classes of dbcontrollers.exceptions.NonexistentEntityException

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.