Examples of NonexistentEntityException


Examples of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Long id = form.getId();
                if (findForm(id) == null) {
                    throw new NonexistentEntityException("The form with id " + id + " no longer exists.");
                }
            }
            throw ex;
        }
    }
View Full Code Here

Examples of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException

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

Examples of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Long id = formData.getId();
                if (findFormData(id) == null) {
                    throw new NonexistentEntityException("The form with id " + id + " no longer exists.");
                }
            }
            throw ex;
        }
    }
View Full Code Here

Examples of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException

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

Examples of com.intel.mtwilson.as.controller.exceptions.NonexistentEntityException

        } catch (Exception ex) {
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = tblOem.getId();
                if (findTblOem(id) == null) {
                    throw new NonexistentEntityException("The tblOem with id " + id + " no longer exists.");
                }
            }
            throw new ASDataException(ex);
        } finally {
                em.close();
View Full Code Here

Examples of com.intel.mtwilson.as.controller.exceptions.NonexistentEntityException

            TblOem tblOem;
            try {
                tblOem = em.getReference(TblOem.class, id);
                tblOem.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The tblOem with id " + id + " no longer exists.", enfe);
            }
            em.remove(tblOem);
            em.getTransaction().commit();
        } finally {
                em.close();
View Full Code Here

Examples of com.intel.mtwilson.as.controller.exceptions.NonexistentEntityException

        } catch (Exception ex) {
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = tblOs.getId();
                if (findTblOs(id) == null) {
                    throw new NonexistentEntityException("The tblOs with id " + id + " no longer exists.");
                }
            }
            throw new ASDataException(ex);
        } finally {
                em.close();
View Full Code Here

Examples of com.intel.mtwilson.as.controller.exceptions.NonexistentEntityException

            TblOs tblOs;
            try {
                tblOs = em.getReference(TblOs.class, id);
                tblOs.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The tblOs with id " + id + " no longer exists.", enfe);
            }
            em.remove(tblOs);
            em.getTransaction().commit();
        } finally {
                em.close();
View Full Code Here

Examples of com.intel.mtwilson.as.controller.exceptions.NonexistentEntityException

        } catch (Exception ex) {
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Integer id = tblPcrManifest.getId();
                if (findTblPcrManifest(id) == null) {
                    throw new NonexistentEntityException("The tblPcrManifest with id " + id + " no longer exists.");
                }
            }
            throw new ASDataException(ex);
        } finally {
                em.close();
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.