Package dbbeans

Examples of dbbeans.Fields


     * @param type
     * @param node
     */
    public void addField(String name, String value, int type, int node) {
        try {
            fieldsController.create(new Fields(0, name, value, type, node));
        } catch (RollbackFailureException ex) {
            Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here


    public void destroy(Integer id) throws NonexistentEntityException, RollbackFailureException, Exception {
        EntityManager em = null;
        try {
            utx.begin();
            em = getEntityManager();
            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();
View Full Code Here

TOP

Related Classes of dbbeans.Fields

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.