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

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


     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanActor findByTincanID(String tincanID)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = fetchByTincanID(tincanID);

        if (lfTincanActor == 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 LFTincanActor) {
            LFTincanActor lfTincanActor = (LFTincanActor) result;

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

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

            query.append(_SQL_SELECT_LFTINCANACTOR_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<LFTincanActor> list = q.list();

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

                    LFTincanActor lfTincanActor = list.get(0);

                    result = lfTincanActor;

                    cacheResult(lfTincanActor);

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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanActor removeByTincanID(String tincanID)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = findByTincanID(tincanID);

        return remove(lfTincanActor);
    }
View Full Code Here

     */
    @Override
    public LFTincanActor findByMemberOf_First(String memberOf,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = fetchByMemberOf_First(memberOf,
                orderByComparator);

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

     */
    @Override
    public LFTincanActor findByMemberOf_Last(String memberOf,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = fetchByMemberOf_Last(memberOf,
                orderByComparator);

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

     */
    @Override
    public LFTincanActor[] findByMemberOf_PrevAndNext(long id, String memberOf,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = findByPrimaryKey(id);

        Session session = null;

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

    @Override
    public LFTincanActor findByAgent_First(String objectType, String mbox,
        String mbox_sha1sum, String openid, String account,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = fetchByAgent_First(objectType, mbox,
                mbox_sha1sum, openid, account, orderByComparator);

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

    @Override
    public LFTincanActor findByAgent_Last(String objectType, String mbox,
        String mbox_sha1sum, String openid, String account,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = fetchByAgent_Last(objectType, mbox,
                mbox_sha1sum, openid, account, orderByComparator);

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

    @Override
    public LFTincanActor[] findByAgent_PrevAndNext(long id, String objectType,
        String mbox, String mbox_sha1sum, String openid, String account,
        OrderByComparator orderByComparator)
        throws NoSuchLFTincanActorException, SystemException {
        LFTincanActor lfTincanActor = findByPrimaryKey(id);

        Session session = null;

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

     * @param id the primary key for the new l f tincan actor
     * @return the new l f tincan actor
     */
    @Override
    public LFTincanActor create(long id) {
        LFTincanActor lfTincanActor = new LFTincanActorImpl();

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

        return lfTincanActor;
    }
View Full Code Here

TOP

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

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.