Package com.peusoft.ptcollect.core.persistance.domain

Examples of com.peusoft.ptcollect.core.persistance.domain.Contract


        super(CustomerContactPerson.class);
    }

    @Override
    public boolean isObjectInUse(CustomerContactPerson ccp) {
        Contract result = contractDao.findMaxOneObject("select * from Contract c where c.customerContact = ?1", ccp);
        return result != null;
    }
View Full Code Here


    public boolean isObjectInUse(User user) {
        UserProjectActivity upa = userProjectActivityDao.findMaxOneObject("select * from UserProjectActirviy upa where upa.user = ?1", user);
        if (upa != null) {
            return true;
        }
        Contract contract = contractDao.findMaxOneObject("select * from Contract c where c.user = ?1", user);
        if (contract != null) {
            return true;
        }
        return false;
    }
View Full Code Here

        boolean ret = false;
        ProjectActivity pa = projectActivityDao.findMaxOneObject("select * from ProjectActivity pa where pa.project = ?1", project);
        if (pa != null) {
            ret = true;
        }
        Contract contract = contractDao.findMaxOneObject("select * from Contract c where c.project = ?1", project);
        if (contract != null) {
            ret = true;
        }
        return ret;
    }
View Full Code Here

TOP

Related Classes of com.peusoft.ptcollect.core.persistance.domain.Contract

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.