Examples of IOrderSyncInfoDAO


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
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.