Package dbbeans

Examples of dbbeans.Nodes


     * @param parent
     * @param tree
     */
    public void addNode(String name, String value, int parent, int tree) {
        try {
            nodesController.create(new Nodes(0, name, value, parent, tree));
        } 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();
            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();
View Full Code Here

TOP

Related Classes of dbbeans.Nodes

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.