Examples of LFTincanLrsStatement


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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanLrsStatement findByTincanID(String tincanID)
        throws NoSuchLFTincanLrsStatementException, SystemException {
        LFTincanLrsStatement lfTincanLrsStatement = fetchByTincanID(tincanID);

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

            msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

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

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

        if (result instanceof LFTincanLrsStatement) {
            LFTincanLrsStatement lfTincanLrsStatement = (LFTincanLrsStatement) result;

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

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

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

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

                    LFTincanLrsStatement lfTincanLrsStatement = list.get(0);

                    result = lfTincanLrsStatement;

                    cacheResult(lfTincanLrsStatement);

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

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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanLrsStatement removeByTincanID(String tincanID)
        throws NoSuchLFTincanLrsStatementException, SystemException {
        LFTincanLrsStatement lfTincanLrsStatement = findByTincanID(tincanID);

        return remove(lfTincanLrsStatement);
    }
View Full Code Here

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

     * @param id the primary key for the new l f tincan lrs statement
     * @return the new l f tincan lrs statement
     */
    @Override
    public LFTincanLrsStatement create(long id) {
        LFTincanLrsStatement lfTincanLrsStatement = new LFTincanLrsStatementImpl();

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

        return lfTincanLrsStatement;
    }
View Full Code Here

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

        Session session = null;

        try {
            session = openSession();

            LFTincanLrsStatement lfTincanLrsStatement = (LFTincanLrsStatement) session.get(LFTincanLrsStatementImpl.class,
                    primaryKey);

            if (lfTincanLrsStatement == null) {
                if (_log.isWarnEnabled()) {
                    _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
View Full Code Here

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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanLrsStatement findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFTincanLrsStatementException, SystemException {
        LFTincanLrsStatement lfTincanLrsStatement = fetchByPrimaryKey(primaryKey);

        if (lfTincanLrsStatement == null) {
            if (_log.isWarnEnabled()) {
                _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
            }
View Full Code Here

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

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFTincanLrsStatement fetchByPrimaryKey(Serializable primaryKey)
        throws SystemException {
        LFTincanLrsStatement lfTincanLrsStatement = (LFTincanLrsStatement) EntityCacheUtil.getResult(LFTincanLrsStatementModelImpl.ENTITY_CACHE_ENABLED,
                LFTincanLrsStatementImpl.class, primaryKey);

        if (lfTincanLrsStatement == _nullLFTincanLrsStatement) {
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.