Package gwlpr.database.jpa.exceptions

Examples of gwlpr.database.jpa.exceptions.NonexistentEntityException


        } catch (Exception ex) {
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                StoragetabPK id = storagetab.getStoragetabPK();
                if (findStoragetab(id) == null) {
                    throw new NonexistentEntityException("The storagetab with id " + id + " no longer exists.");
                }
            }
            throw ex;
        } finally {
            if (em != null) {
View Full Code Here


            Storagetab storagetab;
            try {
                storagetab = em.getReference(Storagetab.class, id);
                storagetab.getStoragetabPK();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The storagetab with id " + id + " no longer exists.", enfe);
            }
            Inventory inventoryID = storagetab.getInventoryID();
            if (inventoryID != null) {
                inventoryID.getStoragetabCollection().remove(storagetab);
                inventoryID = em.merge(inventoryID);
View Full Code Here

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

            Faction faction;
            try {
                faction = em.getReference(Faction.class, id);
                faction.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The faction with id " + id + " no longer exists.", enfe);
            }
            List<String> illegalOrphanMessages = null;
            Collection<Factionstat> factionstatCollectionOrphanCheck = faction.getFactionstatCollection();
            for (Factionstat factionstatCollectionOrphanCheckFactionstat : factionstatCollectionOrphanCheck) {
                if (illegalOrphanMessages == null) {
View Full Code Here

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

            Map map;
            try {
                map = em.getReference(Map.class, id);
                map.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The map with id " + id + " no longer exists.", enfe);
            }
            List<String> illegalOrphanMessages = null;
            Collection<Spawnpoint> spawnpointCollectionOrphanCheck = map.getSpawnpointCollection();
            for (Spawnpoint spawnpointCollectionOrphanCheckSpawnpoint : spawnpointCollectionOrphanCheck) {
                if (illegalOrphanMessages == null) {
View Full Code Here

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

            Profession profession;
            try {
                profession = em.getReference(Profession.class, id);
                profession.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The profession with id " + id + " no longer exists.", enfe);
            }
            List<String> illegalOrphanMessages = null;
            Collection<Attribute> attributeCollectionOrphanCheck = profession.getAttributeCollection();
            for (Attribute attributeCollectionOrphanCheckAttribute : attributeCollectionOrphanCheck) {
                if (illegalOrphanMessages == null) {
View Full Code Here

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

            Itembase itembase;
            try {
                itembase = em.getReference(Itembase.class, id);
                itembase.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The itembase with id " + id + " no longer exists.", enfe);
            }
            List<String> illegalOrphanMessages = null;
            Collection<Item> itemCollectionOrphanCheck = itembase.getItemCollection();
            for (Item itemCollectionOrphanCheckItem : itemCollectionOrphanCheck) {
                if (illegalOrphanMessages == null) {
View Full Code Here

TOP

Related Classes of gwlpr.database.jpa.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.