Examples of existsByNameAnotherTransaction()


Examples of org.libreplan.business.calendars.daos.ICalendarExceptionTypeDAO.existsByNameAnotherTransaction()

            return true;
        }

        ICalendarExceptionTypeDAO calendarExceptionTypeDAO = getIntegrationEntityDAO();
        if (isNewObject()) {
            return !calendarExceptionTypeDAO.existsByNameAnotherTransaction(
                    name);
        } else {
            try {
                CalendarExceptionType calendarExceptionType = calendarExceptionTypeDAO
                        .findUniqueByNameAnotherTransaction(name);
View Full Code Here

Examples of org.libreplan.business.common.daos.IConnectorDAO.existsByNameAnotherTransaction()

            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

Examples of org.libreplan.business.labels.daos.ILabelTypeDAO.existsByNameAnotherTransaction()

        }

        ILabelTypeDAO labelTypeDAO = Registry.getLabelTypeDAO();

        if (isNewObject()) {
            return !labelTypeDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                LabelType c = labelTypeDAO
                        .findUniqueByNameAnotherTransaction(name);
                return c.getId().equals(getId());
View Full Code Here

Examples of org.libreplan.business.orders.daos.IOrderDAO.existsByNameAnotherTransaction()

    public boolean isProjectUniqueNameConstraint() {

        IOrderDAO orderDAO = Registry.getOrderDAO();

        if (isNewObject()) {
            return !orderDAO.existsByNameAnotherTransaction(getName());
        } else {
            try {
                Order o = orderDAO.findByNameAnotherTransaction(getName());
                return o.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
View Full Code Here

Examples of org.libreplan.business.qualityforms.daos.IQualityFormDAO.existsByNameAnotherTransaction()

    @SuppressWarnings("unused")
    @AssertTrue(message = "Quality form name is already being used")
    public boolean isUniqueQualityFormNameConstraint() {
        IQualityFormDAO qualityFormDAO = Registry.getQualityFormDAO();
        if (isNewObject()) {
            return !qualityFormDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                QualityForm c = qualityFormDAO.findUniqueByName(name);
                return c.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
View Full Code Here

Examples of org.libreplan.business.resources.daos.ICriterionTypeDAO.existsByNameAnotherTransaction()

        /* Check the constraint. */
        ICriterionTypeDAO criterionTypeDAO = Registry.getCriterionTypeDAO();

        if (isNewObject()) {
            return !criterionTypeDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                CriterionType c =
                    criterionTypeDAO.findUniqueByNameAnotherTransaction(name);
                return c.getId().equals(getId());
View Full Code Here

Examples of org.libreplan.business.scenarios.daos.IScenarioDAO.existsByNameAnotherTransaction()

        }

        IScenarioDAO scenarioDAO = Registry.getScenarioDAO();

        if (isNewObject()) {
            return !scenarioDAO.existsByNameAnotherTransaction(
                    name);
        } else {
            try {
                Scenario scenario = scenarioDAO.findByName(name);
                return scenario.getId().equals(getId());
View Full Code Here

Examples of org.libreplan.business.workreports.daos.IWorkReportTypeDAO.existsByNameAnotherTransaction()

    @SuppressWarnings("unused")
    @AssertTrue(message = "timesheet template name is already being used")
    public boolean isUniqueWorkReportTypeNameConstraint() {
        IWorkReportTypeDAO workReportTypeDAO = Registry.getWorkReportTypeDAO();
        if (isNewObject()) {
            return !workReportTypeDAO.existsByNameAnotherTransaction(this);
        } else {
            try {
                WorkReportType c = workReportTypeDAO.findUniqueByName(name);
                return c.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
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.