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

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


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

        LFRequiredActivity lfRequiredActivity = (LFRequiredActivity) obj;

        long primaryKey = lfRequiredActivity.getPrimaryKey();

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


     */
    @Override
    public LFRequiredActivity findByAchievementId_First(Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFRequiredActivityException, SystemException {
        LFRequiredActivity lfRequiredActivity = fetchByAchievementId_First(achievementId,
                orderByComparator);

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

     */
    @Override
    public LFRequiredActivity findByAchievementId_Last(Integer achievementId,
        OrderByComparator orderByComparator)
        throws NoSuchLFRequiredActivityException, SystemException {
        LFRequiredActivity lfRequiredActivity = fetchByAchievementId_Last(achievementId,
                orderByComparator);

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

     */
    @Override
    public LFRequiredActivity[] findByAchievementId_PrevAndNext(long id,
        Integer achievementId, OrderByComparator orderByComparator)
        throws NoSuchLFRequiredActivityException, SystemException {
        LFRequiredActivity lfRequiredActivity = findByPrimaryKey(id);

        Session session = null;

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

     * @param id the primary key for the new l f required activity
     * @return the new l f required activity
     */
    @Override
    public LFRequiredActivity create(long id) {
        LFRequiredActivity lfRequiredActivity = new LFRequiredActivityImpl();

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

        return lfRequiredActivity;
    }
View Full Code Here

        Session session = null;

        try {
            session = openSession();

            LFRequiredActivity lfRequiredActivity = (LFRequiredActivity) session.get(LFRequiredActivityImpl.class,
                    primaryKey);

            if (lfRequiredActivity == 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 LFRequiredActivity findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFRequiredActivityException, SystemException {
        LFRequiredActivity lfRequiredActivity = fetchByPrimaryKey(primaryKey);

        if (lfRequiredActivity == 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 LFRequiredActivity fetchByPrimaryKey(Serializable primaryKey)
        throws SystemException {
        LFRequiredActivity lfRequiredActivity = (LFRequiredActivity) EntityCacheUtil.getResult(LFRequiredActivityModelImpl.ENTITY_CACHE_ENABLED,
                LFRequiredActivityImpl.class, primaryKey);

        if (lfRequiredActivity == _nullLFRequiredActivity) {
            return null;
        }
View Full Code Here

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

    public LFRequiredActivity createLFRequiredActivity(Integer achievementId, String activityClassName, Integer numberActivitiesRequired) throws SystemException {
        LFRequiredActivity result = createLFRequiredActivity(counterLocalService.increment(LFRequiredActivity.class.getName()));
        result.setAchievementId(achievementId);
        result.setActivityClassName(activityClassName);
        result.setNumberActivitiesRequired(numberActivitiesRequired);
        lfRequiredActivityPersistence.update(result, false);
        return result;
    }
View Full Code Here

TOP

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

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.