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


Java ExpressionList.findRowCount方法代码示例

本文整理汇总了Java中com.avaje.ebean.ExpressionList.findRowCount方法的典型用法代码示例。如果您正苦于以下问题:Java ExpressionList.findRowCount方法的具体用法?Java ExpressionList.findRowCount怎么用?Java ExpressionList.findRowCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.avaje.ebean.ExpressionList的用法示例。


在下文中一共展示了ExpressionList.findRowCount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: existsByAuthUserIdentity

import com.avaje.ebean.ExpressionList; //导入方法依赖的package包/类
public static boolean existsByAuthUserIdentity(
		final AuthUserIdentity identity) {
	final ExpressionList<User> exp;
	if (identity instanceof UsernamePasswordAuthUser) {
		exp = getUsernamePasswordAuthUserFind((UsernamePasswordAuthUser) identity);
	} else {
		exp = getAuthUserFind(identity);
	}
	return exp.findRowCount() > 0;
}
 
开发者ID:Vadus,项目名称:songs_play,代码行数:11,代码来源:User.java

示例2: getRequirementAsOpenDefectCountByPE

import com.avaje.ebean.ExpressionList; //导入方法依赖的package包/类
/**
 * Get the total number of open and direct defects of a portfolio entry.
 * 
 * @param portfolioEntryId
 *            the portfolio entry id
 * @param isBlocker
 *            if true: get only blocker defects, if false: get only
 *            non-blocker defects, if null: get all defects
 */
public static Integer getRequirementAsOpenDefectCountByPE(Long portfolioEntryId, Boolean isBlocker) {

    ExpressionList<Requirement> expr = RequirementDAO.findRequirement.where().eq("deleted", false).eq("portfolioEntry.id", portfolioEntryId)
            .eq("isDefect", true).ne("requirementStatus.type", RequirementStatus.Type.CLOSED)
            .ne("requirementStatus.type", RequirementStatus.Type.DEPLOYED);

    if (isBlocker != null) {
        expr = expr.eq("requirementSeverity.isBlocker", isBlocker);
    }
    return expr.findRowCount();

}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:22,代码来源:RequirementDAO.java

示例3: getRequirementAsCountByPEAndIsScoped

import com.avaje.ebean.ExpressionList; //导入方法依赖的package包/类
/**
 * Get the total number of direct requirements of a portfolio entry
 * according to the isScoped value.
 * 
 * @param portfolioEntryId
 *            the portfolio entry id
 * @param isScoped
 *            if true: get only the scoped requirements, if false: get only
 *            the non-scoped requirements, if null: get all requirements
 */
public static Integer getRequirementAsCountByPEAndIsScoped(Long portfolioEntryId, Boolean isScoped) {

    ExpressionList<Requirement> expr = RequirementDAO.findRequirement.where().eq("deleted", false).eq("portfolioEntry.id", portfolioEntryId);

    if (isScoped != null) {
        expr = expr.eq("isScoped", isScoped);
    }

    return expr.findRowCount();
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:21,代码来源:RequirementDAO.java

示例4: existsByAuthUserIdentity

import com.avaje.ebean.ExpressionList; //导入方法依赖的package包/类
public static boolean existsByAuthUserIdentity(
		final AuthUserIdentity identity) {
	final ExpressionList<User> exp = getAuthUserFind(identity);
	return exp.findRowCount() > 0;
}
 
开发者ID:schmave,项目名称:demschooltools,代码行数:6,代码来源:User.java

示例5: Pagination

import com.avaje.ebean.ExpressionList; //导入方法依赖的package包/类
/**
 * Creates a Pagination object using the specified {@link ExpressionList}
 * and a specific page size.
 * 
 * @param expressionList
 * @param pageSize
 *            the number of records in one page
 * @param numberOfLinksInNavigationBar
 *            the number of links (possible pages to navigate to) displayed
 *            in the navigation bar
 */
public Pagination(ExpressionList<T> expressionList, int pageSize, int numberOfLinksInNavigationBar) {
    this.pageSize = pageSize;
    this.expressionList = expressionList;
    this.numberOfLinksInNavigationBar = numberOfLinksInNavigationBar;
    this.rowCount = expressionList.findRowCount();
    computeNumberOfPages(pageSize);
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:19,代码来源:Pagination.java


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