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

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


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

        LFAchievementActivity lfAchievementActivity = (LFAchievementActivity) obj;

        long primaryKey = lfAchievementActivity.getPrimaryKey();

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


    public List<LFAchievementActivity> findAllByAchievementAndUserId(Integer achievementId, Integer userId) throws SystemException {
        return lfAchievementActivityPersistence.findByAllByAchievementAndUserId(userId, achievementId);
    }

    public LFAchievementActivity createLFAchievementActivity(Integer userId, Integer achievementId) throws SystemException {
        LFAchievementActivity result = createLFAchievementActivity(counterLocalService.increment(LFAchievementActivity.class.getName()));
        result.setUserId(userId);
        result.setAchievementId(achievementId);
        lfAchievementActivityPersistence.update(result, false);
        return result;
    }
View Full Code Here

     */
    @Override
    public LFAchievementActivity findByUserId_Last(Integer userId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = fetchByUserId_Last(userId,
                orderByComparator);

        if (lfAchievementActivity != null) {
            return lfAchievementActivity;
        }
View Full Code Here

     */
    @Override
    public LFAchievementActivity[] findByUserId_PrevAndNext(long id,
        Integer userId, OrderByComparator orderByComparator)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = findByPrimaryKey(id);

        Session session = null;

        try {
            session = openSession();
View Full Code Here

    @Override
    public LFAchievementActivity findByAllByAchievementAndUserId_First(
        Integer userId, Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = fetchByAllByAchievementAndUserId_First(userId,
                achievementId, orderByComparator);

        if (lfAchievementActivity != null) {
            return lfAchievementActivity;
        }
View Full Code Here

    @Override
    public LFAchievementActivity findByAllByAchievementAndUserId_Last(
        Integer userId, Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = fetchByAllByAchievementAndUserId_Last(userId,
                achievementId, orderByComparator);

        if (lfAchievementActivity != null) {
            return lfAchievementActivity;
        }
View Full Code Here

    @Override
    public LFAchievementActivity[] findByAllByAchievementAndUserId_PrevAndNext(
        long id, Integer userId, Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = findByPrimaryKey(id);

        Session session = null;

        try {
            session = openSession();
View Full Code Here

     * @param id the primary key for the new l f achievement activity
     * @return the new l f achievement activity
     */
    @Override
    public LFAchievementActivity create(long id) {
        LFAchievementActivity lfAchievementActivity = new LFAchievementActivityImpl();

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

        return lfAchievementActivity;
    }
View Full Code Here

        Session session = null;

        try {
            session = openSession();

            LFAchievementActivity lfAchievementActivity = (LFAchievementActivity) session.get(LFAchievementActivityImpl.class,
                    primaryKey);

            if (lfAchievementActivity == 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 LFAchievementActivity findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFAchievementActivityException, SystemException {
        LFAchievementActivity lfAchievementActivity = fetchByPrimaryKey(primaryKey);

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

TOP

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

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.