Package org.libreplan.business.common.daos

Examples of org.libreplan.business.common.daos.IConnectorDAO


    public boolean isUniqueConnectorNameConstraint() {
        if (StringUtils.isBlank(name)) {
            return true;
        }

        IConnectorDAO connectorDAO = Registry.getConnectorDAO();
        if (isNewObject()) {
            return !connectorDAO.existsByNameAnotherTransaction(this);
        } else {
            Connector found = connectorDAO
                    .findUniqueByNameAnotherTransaction(name);
            return found == null || found.getId().equals(getId());
        }

    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.common.daos.IConnectorDAO

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.