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

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


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

        LFTincanPackage lfTincanPackage = (LFTincanPackage) obj;

        long primaryKey = lfTincanPackage.getPrimaryKey();

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


     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanPackage findByRefID(Long assetRefID)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = fetchByRefID(assetRefID);

        if (lfTincanPackage == null) {
            StringBundler msg = new StringBundler(4);

            msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

            result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_REFID,
                    finderArgs, this);
        }

        if (result instanceof LFTincanPackage) {
            LFTincanPackage lfTincanPackage = (LFTincanPackage) result;

            if (!Validator.equals(assetRefID, lfTincanPackage.getAssetRefID())) {
                result = null;
            }
        }

        if (result == null) {
            StringBundler query = new StringBundler(3);

            query.append(_SQL_SELECT_LFTINCANPACKAGE_WHERE);

            if (assetRefID == null) {
                query.append(_FINDER_COLUMN_REFID_ASSETREFID_NULL_2);
            } else {
                query.append(_FINDER_COLUMN_REFID_ASSETREFID_2);
            }

            String sql = query.toString();

            Session session = null;

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (assetRefID != null) {
                    qPos.add(assetRefID.longValue());
                }

                List<LFTincanPackage> list = q.list();

                if (list.isEmpty()) {
                    FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_REFID,
                        finderArgs, list);
                } else {
                    if ((list.size() > 1) && _log.isWarnEnabled()) {
                        _log.warn(
                            "LFTincanPackagePersistenceImpl.fetchByRefID(Long, boolean) with parameters (" +
                            StringUtil.merge(finderArgs) +
                            ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.");
                    }

                    LFTincanPackage lfTincanPackage = list.get(0);

                    result = lfTincanPackage;

                    cacheResult(lfTincanPackage);

                    if ((lfTincanPackage.getAssetRefID() != assetRefID)) {
                        FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_REFID,
                            finderArgs, lfTincanPackage);
                    }
                }
            } catch (Exception e) {
View Full Code Here

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanPackage removeByRefID(Long assetRefID)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = findByRefID(assetRefID);

        return remove(lfTincanPackage);
    }
View Full Code Here

     */
    @Override
    public LFTincanPackage findByInstance_First(Integer courseID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = fetchByInstance_First(courseID,
                orderByComparator);

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

     */
    @Override
    public LFTincanPackage findByInstance_Last(Integer courseID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = fetchByInstance_Last(courseID,
                orderByComparator);

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

     */
    @Override
    public LFTincanPackage[] findByInstance_PrevAndNext(long id,
        Integer courseID, OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = findByPrimaryKey(id);

        Session session = null;

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

     */
    @Override
    public LFTincanPackage findByCourseID_First(Integer courseID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = fetchByCourseID_First(courseID,
                orderByComparator);

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

     */
    @Override
    public LFTincanPackage findByCourseID_Last(Integer courseID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = fetchByCourseID_Last(courseID,
                orderByComparator);

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

     */
    @Override
    public LFTincanPackage[] findByCourseID_PrevAndNext(long id,
        Integer courseID, OrderByComparator orderByComparator)
        throws NoSuchLFTincanPackageException, SystemException {
        LFTincanPackage lfTincanPackage = findByPrimaryKey(id);

        Session session = null;

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

TOP

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

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.