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

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


     */
    @Override
    public LFTincanManifestAct findByPackageID_First(Long packageID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = fetchByPackageID_First(packageID,
                orderByComparator);

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


     */
    @Override
    public LFTincanManifestAct findByPackageID_Last(Long packageID,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = fetchByPackageID_Last(packageID,
                orderByComparator);

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

     */
    @Override
    public LFTincanManifestAct[] findByPackageID_PrevAndNext(long id,
        Long packageID, OrderByComparator orderByComparator)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = findByPrimaryKey(id);

        Session session = null;

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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanManifestAct findByTincanID(String tincanID)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = fetchByTincanID(tincanID);

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

            msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

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

        if (result instanceof LFTincanManifestAct) {
            LFTincanManifestAct lfTincanManifestAct = (LFTincanManifestAct) result;

            if (!Validator.equals(tincanID, lfTincanManifestAct.getTincanID())) {
                result = null;
            }
        }

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

            query.append(_SQL_SELECT_LFTINCANMANIFESTACT_WHERE);

            boolean bindTincanID = false;

            if (tincanID == null) {
                query.append(_FINDER_COLUMN_TINCANID_TINCANID_1);
            } else if (tincanID.equals(StringPool.BLANK)) {
                query.append(_FINDER_COLUMN_TINCANID_TINCANID_3);
            } else {
                bindTincanID = true;

                if (tincanID.equals(StringPool.BLANK)) {
                    query.append(_FINDER_COLUMN_TINCANID_TINCANID_3);
                } else {
                    query.append(_FINDER_COLUMN_TINCANID_TINCANID_2);
                }
            }

            String sql = query.toString();

            Session session = null;

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindTincanID) {
                    if (tincanID != null) {
                        qPos.add(tincanID);
                    }
                }

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

                if (list.isEmpty()) {
                    FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID,
                        finderArgs, list);
                } else {
                    if ((list.size() > 1) && _log.isWarnEnabled()) {
                        _log.warn(
                            "LFTincanManifestActPersistenceImpl.fetchByTincanID(String, 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.");
                    }

                    LFTincanManifestAct lfTincanManifestAct = list.get(0);

                    result = lfTincanManifestAct;

                    cacheResult(lfTincanManifestAct);

                    if ((lfTincanManifestAct.getTincanID() == null) ||
                            !lfTincanManifestAct.getTincanID().equals(tincanID)) {
                        FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID,
                            finderArgs, lfTincanManifestAct);
                    }
                }
            } catch (Exception e) {
View Full Code Here

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanManifestAct removeByTincanID(String tincanID)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = findByTincanID(tincanID);

        return remove(lfTincanManifestAct);
    }
View Full Code Here

     * @param id the primary key for the new l f tincan manifest act
     * @return the new l f tincan manifest act
     */
    @Override
    public LFTincanManifestAct create(long id) {
        LFTincanManifestAct lfTincanManifestAct = new LFTincanManifestActImpl();

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

        return lfTincanManifestAct;
    }
View Full Code Here

        Session session = null;

        try {
            session = openSession();

            LFTincanManifestAct lfTincanManifestAct = (LFTincanManifestAct) session.get(LFTincanManifestActImpl.class,
                    primaryKey);

            if (lfTincanManifestAct == 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 LFTincanManifestAct findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFTincanManifestActException, SystemException {
        LFTincanManifestAct lfTincanManifestAct = fetchByPrimaryKey(primaryKey);

        if (lfTincanManifestAct == 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 LFTincanManifestAct fetchByPrimaryKey(Serializable primaryKey)
        throws SystemException {
        LFTincanManifestAct lfTincanManifestAct = (LFTincanManifestAct) EntityCacheUtil.getResult(LFTincanManifestActModelImpl.ENTITY_CACHE_ENABLED,
                LFTincanManifestActImpl.class, primaryKey);

        if (lfTincanManifestAct == _nullLFTincanManifestAct) {
            return null;
        }
View Full Code Here

TOP

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

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.