Package org.libreplan.business.orders.daos

Examples of org.libreplan.business.orders.daos.IOrderSyncInfoDAO


    public boolean isUniqueOrderSyncInfoConstraint() {
        if (StringUtils.isBlank(key) && order == null
                && StringUtils.isBlank(connectorName)) {
            return true;
        }
        IOrderSyncInfoDAO orderSyncInfoDAO = Registry.getOrderSyncInfoDAO();
        if (isNewObject()) {
            return !orderSyncInfoDAO
                    .existsByKeyOrderAndConnectorNameAnotherTransaction(this);
        } else {
            OrderSyncInfo found = orderSyncInfoDAO
                    .findUniqueByKeyOrderAndConnectorNameAnotherTransaction(
                            key, order, connectorName);
            return found == null || found.getId().equals(getId());
        }
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.orders.daos.IOrderSyncInfoDAO

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.