Package org.jayasoft.woj.portal.data.dao.product

Examples of org.jayasoft.woj.portal.data.dao.product.LicenseDao.save()


        try {
            LicenseDao ldao = DaoFactory.getLicenseDao();
            License l = (License)ldao.find(new Long(licenseId));
            if (l.getInvitedMail()!=null) {
                l.setInvitedMail(null);
                ldao.save(l);
            }
        } catch (DaoException e) {
            throw ServiceException.create("cannot cancel invitation on license " + licenseId, "cannot cancel invitation on license " + licenseId + ", license not found in DB", e);
        }
    }
View Full Code Here


     * @throws ServiceException
     */
    public void saveLicense(License l) throws ServiceException {
        LicenseDao lDao = DaoFactory.getLicenseDao();
        try {
            lDao.save(l);
        } catch (DaoException e) {
            throw new ServiceException("license could not be saved", 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.