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

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


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

        LFAchievementUser lfAchievementUser = (LFAchievementUser) obj;

        long primaryKey = lfAchievementUser.getPrimaryKey();

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


    public List<LFAchievementUser> findByAchievementId(Integer achievementId) throws SystemException {
        return lfAchievementUserPersistence.findByAchievementId(achievementId);
    }

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

     */
    @Override
    public LFAchievementUser findByUserId_First(Integer userId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = fetchByUserId_First(userId,
                orderByComparator);

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

     */
    @Override
    public LFAchievementUser findByUserId_Last(Integer userId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = fetchByUserId_Last(userId,
                orderByComparator);

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

     */
    @Override
    public LFAchievementUser[] findByUserId_PrevAndNext(long id,
        Integer userId, OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = findByPrimaryKey(id);

        Session session = null;

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

     */
    @Override
    public LFAchievementUser findByAchievementId_First(Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = fetchByAchievementId_First(achievementId,
                orderByComparator);

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

     */
    @Override
    public LFAchievementUser findByAchievementId_Last(Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = fetchByAchievementId_Last(achievementId,
                orderByComparator);

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

     */
    @Override
    public LFAchievementUser[] findByAchievementId_PrevAndNext(long id,
        Integer achievementId, OrderByComparator orderByComparator)
        throws NoSuchLFAchievementUserException, SystemException {
        LFAchievementUser lfAchievementUser = findByPrimaryKey(id);

        Session session = null;

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

     * @param id the primary key for the new l f achievement user
     * @return the new l f achievement user
     */
    @Override
    public LFAchievementUser create(long id) {
        LFAchievementUser lfAchievementUser = new LFAchievementUserImpl();

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

        return lfAchievementUser;
    }
View Full Code Here

        Session session = null;

        try {
            session = openSession();

            LFAchievementUser lfAchievementUser = (LFAchievementUser) session.get(LFAchievementUserImpl.class,
                    primaryKey);

            if (lfAchievementUser == 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.LFAchievementUser

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.