Java 类com.liferay.portal.kernel.util.OrderByComparator 实例源码

项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the last dict item in the ordered set where dictCollectionId = ? and parentItemId = ?.
 *
 * @param dictCollectionId the dict collection ID
 * @param parentItemId the parent item ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item, or <code>null</code> if a matching dict item could not be found
 */
@Override
public DictItem fetchByF_dictCollectionId_parentItemId_Last(
    long dictCollectionId, long parentItemId,
    OrderByComparator<DictItem> orderByComparator) {
    int count = countByF_dictCollectionId_parentItemId(dictCollectionId,
            parentItemId);

    if (count == 0) {
        return null;
    }

    List<DictItem> list = findByF_dictCollectionId_parentItemId(dictCollectionId,
            parentItemId, count - 1, count, orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the first dict item group in the ordered set where groupId = &#63; and dictGroupId = &#63;.
 *
 * @param groupId the group ID
 * @param dictGroupId the dict group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByF_dictGroupId_First(long groupId,
    long dictGroupId, OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByF_dictGroupId_First(groupId,
            dictGroupId, orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("groupId=");
    msg.append(groupId);

    msg.append(", dictGroupId=");
    msg.append(dictGroupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByUuid_Last(String uuid,
    OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByUuid_Last(uuid, orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictCollectionPersistenceImpl.java   
/**
 * Returns the first dict collection in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByUuid_First(String uuid,
    OrderByComparator<DictCollection> orderByComparator)
    throws NoSuchDictCollectionException {
    DictCollection dictCollection = fetchByUuid_First(uuid,
            orderByComparator);

    if (dictCollection != null) {
        return dictCollection;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictCollectionException(msg.toString());
}
项目:opencps-v2    文件:CommentPersistenceImpl.java   
/**
 * Returns the first comment in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching comment
 * @throws NoSuchCommentException if a matching comment could not be found
 */
@Override
public Comment findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<Comment> orderByComparator)
    throws NoSuchCommentException {
    Comment comment = fetchByUuid_C_First(uuid, companyId, orderByComparator);

    if (comment != null) {
        return comment;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchCommentException(msg.toString());
}
项目:opencps-v2    文件:DictCollectionPersistenceImpl.java   
/**
 * Returns the first dict collection in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<DictCollection> orderByComparator)
    throws NoSuchDictCollectionException {
    DictCollection dictCollection = fetchByUuid_C_First(uuid, companyId,
            orderByComparator);

    if (dictCollection != null) {
        return dictCollection;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictCollectionException(msg.toString());
}
项目:opencps-v2    文件:DictCollectionPersistenceImpl.java   
/**
 * Returns the last dict collection in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<DictCollection> orderByComparator)
    throws NoSuchDictCollectionException {
    DictCollection dictCollection = fetchByUuid_C_Last(uuid, companyId,
            orderByComparator);

    if (dictCollection != null) {
        return dictCollection;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictCollectionException(msg.toString());
}
项目:opencps-v2    文件:DictCollectionPersistenceImpl.java   
/**
 * Returns the first dict collection in the ordered set where groupId = &#63;.
 *
 * @param groupId the group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByF_dictCollectionByGroup_First(long groupId,
    OrderByComparator<DictCollection> orderByComparator)
    throws NoSuchDictCollectionException {
    DictCollection dictCollection = fetchByF_dictCollectionByGroup_First(groupId,
            orderByComparator);

    if (dictCollection != null) {
        return dictCollection;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("groupId=");
    msg.append(groupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictCollectionException(msg.toString());
}
项目:opencps-v2    文件:DictCollectionPersistenceImpl.java   
/**
 * Returns the last dict collection in the ordered set where groupId = &#63;.
 *
 * @param groupId the group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByF_dictCollectionByGroup_Last(long groupId,
    OrderByComparator<DictCollection> orderByComparator)
    throws NoSuchDictCollectionException {
    DictCollection dictCollection = fetchByF_dictCollectionByGroup_Last(groupId,
            orderByComparator);

    if (dictCollection != null) {
        return dictCollection;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("groupId=");
    msg.append(groupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictCollectionException(msg.toString());
}
项目:opencps-v2    文件:CommentPersistenceImpl.java   
/**
 * Returns the last comment in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching comment
 * @throws NoSuchCommentException if a matching comment could not be found
 */
@Override
public Comment findByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<Comment> orderByComparator)
    throws NoSuchCommentException {
    Comment comment = fetchByUuid_C_Last(uuid, companyId, orderByComparator);

    if (comment != null) {
        return comment;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchCommentException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where groupId = &#63; and dictItemId = &#63;.
 *
 * @param groupId the group ID
 * @param dictItemId the dict item ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByF_dictItemId_Last(long groupId, long dictItemId,
    OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByF_dictItemId_Last(groupId,
            dictItemId, orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("groupId=");
    msg.append(groupId);

    msg.append(", dictItemId=");
    msg.append(dictItemId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:VotingPersistenceImpl.java   
/**
 * Returns the last voting in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting
 * @throws NoSuchVotingException if a matching voting could not be found
 */
@Override
public Voting findByUuid_Last(String uuid,
    OrderByComparator<Voting> orderByComparator)
    throws NoSuchVotingException {
    Voting voting = fetchByUuid_Last(uuid, orderByComparator);

    if (voting != null) {
        return voting;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchVotingException(msg.toString());
}
项目:opencps-v2    文件:VotingPersistenceImpl.java   
/**
 * Returns the last voting in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting, or <code>null</code> if a matching voting could not be found
 */
@Override
public Voting fetchByUuid_Last(String uuid,
    OrderByComparator<Voting> orderByComparator) {
    int count = countByUuid(uuid);

    if (count == 0) {
        return null;
    }

    List<Voting> list = findByUuid(uuid, count - 1, count, orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the last dict group in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict group, or <code>null</code> if a matching dict group could not be found
 */
@Override
public DictGroup fetchByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<DictGroup> orderByComparator) {
    int count = countByUuid_C(uuid, companyId);

    if (count == 0) {
        return null;
    }

    List<DictGroup> list = findByUuid_C(uuid, companyId, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:VotingPersistenceImpl.java   
/**
 * Returns the last voting in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting
 * @throws NoSuchVotingException if a matching voting could not be found
 */
@Override
public Voting findByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<Voting> orderByComparator)
    throws NoSuchVotingException {
    Voting voting = fetchByUuid_C_Last(uuid, companyId, orderByComparator);

    if (voting != null) {
        return voting;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchVotingException(msg.toString());
}
项目:opencps-v2    文件:VotingPersistenceImpl.java   
/**
 * Returns the last voting in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting, or <code>null</code> if a matching voting could not be found
 */
@Override
public Voting fetchByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<Voting> orderByComparator) {
    int count = countByUuid_C(uuid, companyId);

    if (count == 0) {
        return null;
    }

    List<Voting> list = findByUuid_C(uuid, companyId, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:VotingResultPersistenceImpl.java   
/**
 * Returns the first voting result in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching voting result
 * @throws NoSuchVotingResultException if a matching voting result could not be found
 */
@Override
public VotingResult findByUuid_First(String uuid,
    OrderByComparator<VotingResult> orderByComparator)
    throws NoSuchVotingResultException {
    VotingResult votingResult = fetchByUuid_First(uuid, orderByComparator);

    if (votingResult != null) {
        return votingResult;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchVotingResultException(msg.toString());
}
项目:opencps-v2    文件:VotingResultPersistenceImpl.java   
/**
 * Returns the last voting result in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting result
 * @throws NoSuchVotingResultException if a matching voting result could not be found
 */
@Override
public VotingResult findByUuid_Last(String uuid,
    OrderByComparator<VotingResult> orderByComparator)
    throws NoSuchVotingResultException {
    VotingResult votingResult = fetchByUuid_Last(uuid, orderByComparator);

    if (votingResult != null) {
        return votingResult;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchVotingResultException(msg.toString());
}
项目:opencps-v2    文件:VotingResultPersistenceImpl.java   
/**
 * Returns the last voting result in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting result, or <code>null</code> if a matching voting result could not be found
 */
@Override
public VotingResult fetchByUuid_Last(String uuid,
    OrderByComparator<VotingResult> orderByComparator) {
    int count = countByUuid(uuid);

    if (count == 0) {
        return null;
    }

    List<VotingResult> list = findByUuid(uuid, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:VotingResultPersistenceImpl.java   
/**
 * Returns the first voting result in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching voting result
 * @throws NoSuchVotingResultException if a matching voting result could not be found
 */
@Override
public VotingResult findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<VotingResult> orderByComparator)
    throws NoSuchVotingResultException {
    VotingResult votingResult = fetchByUuid_C_First(uuid, companyId,
            orderByComparator);

    if (votingResult != null) {
        return votingResult;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchVotingResultException(msg.toString());
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the last dict group in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict group, or <code>null</code> if a matching dict group could not be found
 */
@Override
public DictGroup fetchByUuid_Last(String uuid,
    OrderByComparator<DictGroup> orderByComparator) {
    int count = countByUuid(uuid);

    if (count == 0) {
        return null;
    }

    List<DictGroup> list = findByUuid(uuid, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:VotingResultPersistenceImpl.java   
/**
 * Returns the last voting result in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching voting result, or <code>null</code> if a matching voting result could not be found
 */
@Override
public VotingResult fetchByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<VotingResult> orderByComparator) {
    int count = countByUuid_C(uuid, companyId);

    if (count == 0) {
        return null;
    }

    List<VotingResult> list = findByUuid_C(uuid, companyId, count - 1,
            count, orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the first dict item in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByUuid_First(String uuid,
    OrderByComparator<DictItem> orderByComparator)
    throws NoSuchDictItemException {
    DictItem dictItem = fetchByUuid_First(uuid, orderByComparator);

    if (dictItem != null) {
        return dictItem;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemException(msg.toString());
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the last dict item in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByUuid_Last(String uuid,
    OrderByComparator<DictItem> orderByComparator)
    throws NoSuchDictItemException {
    DictItem dictItem = fetchByUuid_Last(uuid, orderByComparator);

    if (dictItem != null) {
        return dictItem;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemException(msg.toString());
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the last dict item in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item, or <code>null</code> if a matching dict item could not be found
 */
@Override
public DictItem fetchByUuid_Last(String uuid,
    OrderByComparator<DictItem> orderByComparator) {
    int count = countByUuid(uuid);

    if (count == 0) {
        return null;
    }

    List<DictItem> list = findByUuid(uuid, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where groupId = &#63; and dictGroupId = &#63;.
 *
 * @param groupId the group ID
 * @param dictGroupId the dict group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByF_dictGroupId_Last(long groupId,
    long dictGroupId, OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByF_dictGroupId_Last(groupId,
            dictGroupId, orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("groupId=");
    msg.append(groupId);

    msg.append(", dictGroupId=");
    msg.append(dictGroupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the first dict item in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<DictItem> orderByComparator)
    throws NoSuchDictItemException {
    DictItem dictItem = fetchByUuid_C_First(uuid, companyId,
            orderByComparator);

    if (dictItem != null) {
        return dictItem;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemException(msg.toString());
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the first dict group in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict group
 * @throws NoSuchDictGroupException if a matching dict group could not be found
 */
@Override
public DictGroup findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<DictGroup> orderByComparator)
    throws NoSuchDictGroupException {
    DictGroup dictGroup = fetchByUuid_C_First(uuid, companyId,
            orderByComparator);

    if (dictGroup != null) {
        return dictGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictGroupException(msg.toString());
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the last dict group in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict group
 * @throws NoSuchDictGroupException if a matching dict group could not be found
 */
@Override
public DictGroup findByUuid_Last(String uuid,
    OrderByComparator<DictGroup> orderByComparator)
    throws NoSuchDictGroupException {
    DictGroup dictGroup = fetchByUuid_Last(uuid, orderByComparator);

    if (dictGroup != null) {
        return dictGroup;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group, or <code>null</code> if a matching dict item group could not be found
 */
@Override
public DictItemGroup fetchByUuid_Last(String uuid,
    OrderByComparator<DictItemGroup> orderByComparator) {
    int count = countByUuid(uuid);

    if (count == 0) {
        return null;
    }

    List<DictItemGroup> list = findByUuid(uuid, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the last dict group in the ordered set where dictCollectionId = &#63; and groupId = &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param groupId the group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict group
 * @throws NoSuchDictGroupException if a matching dict group could not be found
 */
@Override
public DictGroup findByGID_DC_Last(long dictCollectionId, long groupId,
    OrderByComparator<DictGroup> orderByComparator)
    throws NoSuchDictGroupException {
    DictGroup dictGroup = fetchByGID_DC_Last(dictCollectionId, groupId,
            orderByComparator);

    if (dictGroup != null) {
        return dictGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("dictCollectionId=");
    msg.append(dictCollectionId);

    msg.append(", groupId=");
    msg.append(groupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the last dict item in the ordered set where dictCollectionId = &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByF_dictCollectionId_Last(long dictCollectionId,
    OrderByComparator<DictItem> orderByComparator)
    throws NoSuchDictItemException {
    DictItem dictItem = fetchByF_dictCollectionId_Last(dictCollectionId,
            orderByComparator);

    if (dictItem != null) {
        return dictItem;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("dictCollectionId=");
    msg.append(dictCollectionId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemException(msg.toString());
}
项目:opencps-v2    文件:CommentPersistenceImpl.java   
/**
 * Returns the last comment in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching comment, or <code>null</code> if a matching comment could not be found
 */
@Override
public Comment fetchByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<Comment> orderByComparator) {
    int count = countByUuid_C(uuid, companyId);

    if (count == 0) {
        return null;
    }

    List<Comment> list = findByUuid_C(uuid, companyId, count - 1, count,
            orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the first dict group in the ordered set where dictCollectionId = &#63; and groupId = &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param groupId the group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict group
 * @throws NoSuchDictGroupException if a matching dict group could not be found
 */
@Override
public DictGroup findByGID_DC_First(long dictCollectionId, long groupId,
    OrderByComparator<DictGroup> orderByComparator)
    throws NoSuchDictGroupException {
    DictGroup dictGroup = fetchByGID_DC_First(dictCollectionId, groupId,
            orderByComparator);

    if (dictGroup != null) {
        return dictGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("dictCollectionId=");
    msg.append(dictCollectionId);

    msg.append(", groupId=");
    msg.append(groupId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByUuid_C_Last(String uuid, long companyId,
    OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByUuid_C_Last(uuid, companyId,
            orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the first dict item group in the ordered set where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByUuid_C_First(String uuid, long companyId,
    OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByUuid_C_First(uuid, companyId,
            orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(6);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(", companyId=");
    msg.append(companyId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictItemPersistenceImpl.java   
/**
 * Returns the last dict item in the ordered set where parentItemId = &#63;.
 *
 * @param parentItemId the parent item ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByF_parentItemId_Last(long parentItemId,
    OrderByComparator<DictItem> orderByComparator)
    throws NoSuchDictItemException {
    DictItem dictItem = fetchByF_parentItemId_Last(parentItemId,
            orderByComparator);

    if (dictItem != null) {
        return dictItem;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("parentItemId=");
    msg.append(parentItemId);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemException(msg.toString());
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the last dict item group in the ordered set where groupId = &#63; and dictItemId = &#63;.
 *
 * @param groupId the group ID
 * @param dictItemId the dict item ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item group, or <code>null</code> if a matching dict item group could not be found
 */
@Override
public DictItemGroup fetchByF_dictItemId_Last(long groupId,
    long dictItemId, OrderByComparator<DictItemGroup> orderByComparator) {
    int count = countByF_dictItemId(groupId, dictItemId);

    if (count == 0) {
        return null;
    }

    List<DictItemGroup> list = findByF_dictItemId(groupId, dictItemId,
            count - 1, count, orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}
项目:opencps-v2    文件:DictItemGroupPersistenceImpl.java   
/**
 * Returns the first dict item group in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByUuid_First(String uuid,
    OrderByComparator<DictItemGroup> orderByComparator)
    throws NoSuchDictItemGroupException {
    DictItemGroup dictItemGroup = fetchByUuid_First(uuid, orderByComparator);

    if (dictItemGroup != null) {
        return dictItemGroup;
    }

    StringBundler msg = new StringBundler(4);

    msg.append(_NO_SUCH_ENTITY_WITH_KEY);

    msg.append("uuid=");
    msg.append(uuid);

    msg.append(StringPool.CLOSE_CURLY_BRACE);

    throw new NoSuchDictItemGroupException(msg.toString());
}
项目:opencps-v2    文件:DictGroupPersistenceImpl.java   
/**
 * Returns the last dict group in the ordered set where dictCollectionId = &#63; and groupId = &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param groupId the group ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict group, or <code>null</code> if a matching dict group could not be found
 */
@Override
public DictGroup fetchByGID_DC_Last(long dictCollectionId, long groupId,
    OrderByComparator<DictGroup> orderByComparator) {
    int count = countByGID_DC(dictCollectionId, groupId);

    if (count == 0) {
        return null;
    }

    List<DictGroup> list = findByGID_DC(dictCollectionId, groupId,
            count - 1, count, orderByComparator);

    if (!list.isEmpty()) {
        return list.get(0);
    }

    return null;
}