Package beans.directory.vidal.entities.atc

Examples of beans.directory.vidal.entities.atc.ClassificationAtc


    }

 
    @Override
    protected void set(ClassificationAtc atc, ClassificationAtcDetails item) throws ClipsServerException {
        ClassificationAtc atcParent = item.parentItem == 0? null: findEntity(ClassificationAtc.class, item.parentItem);
        atc.setTitle(item.title);
        //atc.setDirty(details.dirty);
        atc.setGroupcode(item.groupCode);
        if (atcParent != null){
            atc.setParentAtc(atcParent);           
View Full Code Here


        }
        manager.flush();
    }
   
    private void saveNodeAtc(TreeNode node, ClassificationAtc parentAtc) throws ClipsServerException {
        ClassificationAtc atc = new ClassificationAtc();
        atc.setGroupcode(node.getCode());
        atc.setTitle(node.getTitle());
        atc.setParentAtc(parentAtc);
        manager.persist(atc);
        ArrayList<TreeNode> chidren = node.getChidren();
        for (int i = 0; i < chidren.size(); i++) {
            TreeNode treeNode = chidren.get(i);
            saveNodeAtc(treeNode, atc);
View Full Code Here

TOP

Related Classes of beans.directory.vidal.entities.atc.ClassificationAtc

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.