Package com.arcusys.learn.persistence.liferay.model

Examples of com.arcusys.learn.persistence.liferay.model.LFAchievement


        if (!(obj instanceof LFAchievement)) {
            return false;
        }

        LFAchievement lfAchievement = (LFAchievement) obj;

        long primaryKey = lfAchievement.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
View Full Code Here


     *
     * Never reference this interface directly. Always use {@link com.arcusys.learn.persistence.liferay.service.LFAchievementLocalServiceUtil} to access the l f achievement local service.
     */

    public LFAchievement createLFAchievement(String title, String description, String logo, Date creationDate ) throws SystemException {
        LFAchievement result = createLFAchievement(counterLocalService.increment(LFAchievement.class.getName()));
        result.setTitle(title);
        result.setDescription(description);
        result.setLogo(logo);
        result.setCreationDate(creationDate);

        lfAchievementPersistence.update(result, false);
        return result;
    }
View Full Code Here

     * @param id the primary key for the new l f achievement
     * @return the new l f achievement
     */
    @Override
    public LFAchievement create(long id) {
        LFAchievement lfAchievement = new LFAchievementImpl();

        lfAchievement.setNew(true);
        lfAchievement.setPrimaryKey(id);

        return lfAchievement;
    }
View Full Code Here

        Session session = null;

        try {
            session = openSession();

            LFAchievement lfAchievement = (LFAchievement) session.get(LFAchievementImpl.class,
                    primaryKey);

            if (lfAchievement == null) {
                if (_log.isWarnEnabled()) {
                    _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
View Full Code Here

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFAchievement findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFAchievementException, SystemException {
        LFAchievement lfAchievement = fetchByPrimaryKey(primaryKey);

        if (lfAchievement == null) {
            if (_log.isWarnEnabled()) {
                _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
            }
View Full Code Here

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFAchievement fetchByPrimaryKey(Serializable primaryKey)
        throws SystemException {
        LFAchievement lfAchievement = (LFAchievement) EntityCacheUtil.getResult(LFAchievementModelImpl.ENTITY_CACHE_ENABLED,
                LFAchievementImpl.class, primaryKey);

        if (lfAchievement == _nullLFAchievement) {
            return null;
        }
View Full Code Here

TOP

Related Classes of com.arcusys.learn.persistence.liferay.model.LFAchievement

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.