Package org.libreplan.business.templates.daos

Examples of org.libreplan.business.templates.daos.IOrderElementTemplateDAO


    public boolean isUniqueRootTemplateNameConstraint() {
        if (getParent() != null) {
            return true;
        }

        IOrderElementTemplateDAO orderElementTemplateDAO = Registry
                .getOrderElementTemplateDAO();
        if (isNewObject()) {
            return !orderElementTemplateDAO
                    .existsRootByNameAnotherTransaction(this);
        } else {
            try {
                OrderElementTemplate template = orderElementTemplateDAO
                        .findUniqueRootByName(getName());
                return template.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
                return true;
            }
View Full Code Here

TOP

Related Classes of org.libreplan.business.templates.daos.IOrderElementTemplateDAO

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.