Examples of ILabelTypeDAO


Examples of org.libreplan.business.labels.daos.ILabelTypeDAO

    public boolean isUniqueLabelTypeNameConstraint() {
        if (!firstLevelValidationsPassed()) {
            return true;
        }

        ILabelTypeDAO labelTypeDAO = Registry.getLabelTypeDAO();

        if (isNewObject()) {
            return !labelTypeDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                LabelType c = labelTypeDAO
                        .findUniqueByNameAnotherTransaction(name);
                return c.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.