当前位置: 首页>>代码示例>>Java>>正文


Java OrderByComparator类代码示例

本文整理汇总了Java中com.liferay.portal.kernel.util.OrderByComparator的典型用法代码示例。如果您正苦于以下问题:Java OrderByComparator类的具体用法?Java OrderByComparator怎么用?Java OrderByComparator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OrderByComparator类属于com.liferay.portal.kernel.util包,在下文中一共展示了OrderByComparator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fetchByF_dictCollectionId_parentItemId_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:29,代码来源:DictItemPersistenceImpl.java

示例2: findByF_dictGroupId_First

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:DictItemGroupPersistenceImpl.java

示例3: findByUuid_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:30,代码来源:DictItemGroupPersistenceImpl.java

示例4: findByUuid_First

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:31,代码来源:DictCollectionPersistenceImpl.java

示例5: findByUuid_C_First

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:DictCollectionPersistenceImpl.java

示例6: findByUuid_C_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:DictCollectionPersistenceImpl.java

示例7: findByF_dictCollectionByGroup_First

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:31,代码来源:DictCollectionPersistenceImpl.java

示例8: findByF_dictCollectionByGroup_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:31,代码来源:DictCollectionPersistenceImpl.java

示例9: findByUuid_C_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:34,代码来源:CommentPersistenceImpl.java

示例10: findByF_dictItemId_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:DictItemGroupPersistenceImpl.java

示例11: findByUuid_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:30,代码来源:VotingPersistenceImpl.java

示例12: fetchByUuid_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:25,代码来源:VotingPersistenceImpl.java

示例13: fetchByUuid_C_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:27,代码来源:DictGroupPersistenceImpl.java

示例14: findByUuid_C_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:34,代码来源:VotingPersistenceImpl.java

示例15: fetchByUuid_C_Last

import com.liferay.portal.kernel.util.OrderByComparator; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:27,代码来源:VotingPersistenceImpl.java


注:本文中的com.liferay.portal.kernel.util.OrderByComparator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。