Package org.libreplan.business.common.daos

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


    public boolean isOnlyOneSequenceForEachEntityIsActiveConstraint() {
        if (!isActive()) {
            return true;
        }

        IEntitySequenceDAO entitySequenceDAO = Registry.getEntitySequenceDAO();
        if (isNewObject()) {
            return !entitySequenceDAO
                    .existOtherActiveSequenceByEntityNameForNewObject(this);
        } else {
            try {
                EntitySequence c = entitySequenceDAO
                        .getActiveEntitySequence(this.entityName);
                return c.getId().equals(getId());
            } catch (NonUniqueResultException e) {
                return false;
            } catch (InstanceNotFoundException e) {
View Full Code Here

TOP

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

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.