Examples of IJobSchedulerConfigurationDAO


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

    @AssertTrue(message = "job group and name are already being used")
    public boolean isUniqueJobGroupAndNameConstraint() {
        if (StringUtils.isBlank(jobGroup) && StringUtils.isBlank(jobName)) {
            return true;
        }
        IJobSchedulerConfigurationDAO jobSchedulerConfigurationDAO = Registry
                .getJobSchedulerConfigurationDAO();
        if (isNewObject()) {
            return !jobSchedulerConfigurationDAO
                    .existsByJobGroupAndJobNameAnotherTransaction(this);
        } else {
            JobSchedulerConfiguration found = jobSchedulerConfigurationDAO
                    .findUniqueByJobGroupAndJobNameAnotherTransaction(jobGroup,
                            jobName);
            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.