Package net.stinfoservices.pacifiq.shared.exception

Examples of net.stinfoservices.pacifiq.shared.exception.CustomException


            entityManager.remove(nprogram);
            LOGGER.info(MessageFormat.format(ResourceBundle.getBundle("system").getString("OBJECT_DELETED"), this.getClass().getSimpleName(),
                    nprogram.getName()));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here


                c = result.get(0);
            }

            return (c);
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

    public List<Program> findByIds(List<Long> ids) throws Exception {
        try {
            return entityManager.createQuery("SELECT o FROM " + IModel.DATABASE_PRE + "Program o WHERE o.id IN (:ids) ORDER BY o.name ASC")
                    .setParameter("ids", ids).getResultList();
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

        }

        try {
            return (entityManager.find(AbstractTAA.class, id));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

        try {
            // linked TAA are Generic or Specific (for sample in DSP5 document), and with a certain version at a certain moment.
            return (Collections.unmodifiableList(entityManager.createQuery(
                    "SELECT o FROM " + IModel.DATABASE_PRE + "TAA o ORDER BY type(o), o.licenseNumber ASC, o.versionNumber ASC").getResultList()));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

            return (Collections.unmodifiableList(entityManager
                    .createQuery(
                            "SELECT o FROM " + IModel.DATABASE_PRE + "TAA o WHERE (o.licenseNumber = :licenseNumber) ORDER BY o.versionNumber ASC")
                    .setParameter("licenseNumber", licenseNumber).getResultList()));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

        try {
            return (Collections.unmodifiableList(entityManager
                    .createQuery("SELECT o FROM " + IModel.DATABASE_PRE + "TAA o ORDER BY o.licenseNumber ASC").setFirstResult(firstResult)
                    .setMaxResults(maxResults).getResultList()));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

            LOGGER.info(MessageFormat.format(ResourceBundle.getBundle("system").getString("OBJECT_WLN_SAVED"), this.getClass().getSimpleName(),
                    t.getLicenseNumber() + "-" + t.getVersionNumber()));

            return (t);
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

            entityManager.remove(ntaa);
            LOGGER.info(MessageFormat.format(ResourceBundle.getBundle("system").getString("OBJECT_WLN_DELETED"), this.getClass().getSimpleName(),
                    ntaa.getLicenseNumber() + "-" + ntaa.getVersionNumber()));
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

                c = result.get(0);
            }

            return (c);
        } catch (Exception ex) {
            throw new CustomException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of net.stinfoservices.pacifiq.shared.exception.CustomException

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.