Examples of IOrderElementTemplateDAO


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
Copyright © 2018 www.massapi.com. 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.