• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Expr类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getPEPlanAllocatedActorAsExprByActorAndActive

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Get all allocation of an actor for not archived portfolio entries as an
 * expression list.
 *
 * @param actorId
 *            the actor id
 * @param activeOnly
 *            if true, it returns only the allocation for which the end date
 *            is in the future
 */
public static ExpressionList<PortfolioEntryResourcePlanAllocatedActor> getPEPlanAllocatedActorAsExprByActorAndActive(Long actorId, boolean activeOnly, boolean withArchived) {

    ExpressionList<PortfolioEntryResourcePlanAllocatedActor> expr = PortfolioEntryResourcePlanDAO.findPEResourcePlanAllocatedActor.orderBy("endDate")
            .where().eq("deleted", false).eq("actor.id", actorId).eq("portfolioEntryResourcePlan.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.isFrozen", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.isActive", true)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.deleted", false);

    if (!withArchived) {
        expr = expr.add(Expr.eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.archived", false));
    }

    if (activeOnly) {
        expr = expr.add(Expr.or(Expr.isNull("endDate"), Expr.gt("endDate", new Date())));
    }

    return expr;
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:31,代码来源:PortfolioEntryResourcePlanDAO.java


示例2: getPEPlanAllocatedActorAsExprByOrgUnitAndActive

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Get all allocation of the actors of an org unit for not archived
 * portfolio entries as an expression list.
 *
 * @param orgUnitId
 *            the org unit id
 * @param activeOnly
 *            if true, it returns only the allocation for which the end date
 *            is in the future
 */
public static ExpressionList<PortfolioEntryResourcePlanAllocatedActor> getPEPlanAllocatedActorAsExprByOrgUnitAndActive(Long orgUnitId,
        boolean activeOnly, boolean draftExcluded) {

    ExpressionList<PortfolioEntryResourcePlanAllocatedActor> expr = PortfolioEntryResourcePlanDAO.findPEResourcePlanAllocatedActor.where()
            .eq("deleted", false).eq("actor.isActive", true).eq("actor.deleted", false).eq("actor.orgUnit.id", orgUnitId)
            .eq("portfolioEntryResourcePlan.deleted", false).eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.isFrozen", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.isActive", true)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.archived", false);

    if (activeOnly) {
        expr = expr.add(Expr.or(Expr.isNull("endDate"), Expr.gt("endDate", new Date())));
    }

    if (draftExcluded) {
        expr = expr.not(Expr.eq("portfolioEntryResourcePlanAllocationStatusType", PortfolioEntryResourcePlanDAO.getAllocationStatusByType(PortfolioEntryResourcePlanAllocationStatusType.AllocationStatus.DRAFT)));
    }

    return expr;
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:33,代码来源:PortfolioEntryResourcePlanDAO.java


示例3: getPEPlanAllocatedActorAsExprByManager

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Get all allocation of the actors from the given manager for not archived
 * portfolio entries, as an expression list.
 *
 * @param actorId
 *            the manager id
 * @param activeOnly
 *            if true, it returns only the allocation for which the end date
 *            is in the future
 */
public static ExpressionList<PortfolioEntryResourcePlanAllocatedActor> getPEPlanAllocatedActorAsExprByManager(Long actorId, boolean activeOnly) {

    ExpressionList<PortfolioEntryResourcePlanAllocatedActor> expr = PortfolioEntryResourcePlanDAO.findPEResourcePlanAllocatedActor.where()
            .eq("deleted", false).eq("actor.isActive", true).eq("actor.deleted", false).eq("actor.manager.id", actorId)
            .eq("portfolioEntryResourcePlan.deleted", false).eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.isFrozen", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.isActive", true)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.archived", false);

    if (activeOnly) {
        expr = expr.add(Expr.or(Expr.isNull("endDate"), Expr.gt("endDate", new Date())));
    }

    return expr;
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:28,代码来源:PortfolioEntryResourcePlanDAO.java


示例4: getPEResourcePlanAllocatedOrgUnitAsExprByOrgUnit

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Get all allocation of an org unit for not archived portfolio entries as
 * an expression list.
 *
 * @param orgUnitId
 *            the org unit id
 * @param activeOnly
 *            if true, it returns only the allocation for which the end date
 *            is in the future
 */
public static ExpressionList<PortfolioEntryResourcePlanAllocatedOrgUnit> getPEResourcePlanAllocatedOrgUnitAsExprByOrgUnit(Long orgUnitId,
        boolean activeOnly, boolean draftExcluded) {

    ExpressionList<PortfolioEntryResourcePlanAllocatedOrgUnit> expr = PortfolioEntryResourcePlanDAO.findPEResourcePlanAllocatedOrgUnit.orderBy("endDate")
            .where().eq("deleted", false).eq("orgUnit.id", orgUnitId).eq("portfolioEntryResourcePlan.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.isFrozen", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.isActive", true)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.deleted", false)
            .eq("portfolioEntryResourcePlan.lifeCycleInstancePlannings.lifeCycleInstance.portfolioEntry.archived", false);

    if (activeOnly) {
        expr = expr.add(Expr.or(Expr.isNull("endDate"), Expr.gt("endDate", new Date())));
    }

    if (draftExcluded) {
        expr = expr.not(Expr.eq("portfolioEntryResourcePlanAllocationStatusType", PortfolioEntryResourcePlanDAO.getAllocationStatusByType(PortfolioEntryResourcePlanAllocationStatusType.AllocationStatus.DRAFT)));
    }

    return expr;
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:33,代码来源:PortfolioEntryResourcePlanDAO.java


示例5: getSearchExpression

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Create a search expression from the concatenation of the of the various
 * expressions.<br/>
 * WARNING: return null if no expression can be found
 */
public synchronized Expression getSearchExpression() {
    Expression currentExpression = null;
    for (String columnId : getUserColumnConfigurations().keySet()) {
        UserColumnConfiguration userColumnConfiguration = getUserColumnConfigurations().get(columnId);
        SelectableColumn selectableColumn = getSelectableColumns().get(columnId);
        if (userColumnConfiguration.isFiltered()) {
            String fieldName = selectableColumn.getFieldName();
            Expression temp = selectableColumn.getFilterComponent().getEBeanSearchExpression(userColumnConfiguration.getFilterValue(), fieldName);
            if (currentExpression == null) {
                currentExpression = temp;
            } else {
                if (temp != null) {
                    currentExpression = Expr.and(currentExpression, temp);
                }
            }
            if (log.isDebugEnabled()) {
                log.debug(String.format(">>>>>>>>>>>>>>>>>> Search in column %s for value %s", columnId, userColumnConfiguration.getFilterValue()));
            }
        }
    }
    return currentExpression;
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:28,代码来源:FilterConfig.java


示例6: getEBeanSearchExpression

import com.avaje.ebean.Expr; //导入依赖的package包/类
@Override
public Expression getEBeanSearchExpression(Object filterValue, String fieldName) {
    if (filterValue != null) {
        String value = (String) filterValue;
        if (value.contains(JOKER)) {
            value = value.replaceAll("\\" + JOKER, "%");
            return Expr.like(fieldName, value);
        } else {
            Expression expr = Expr.eq(fieldName, value);
            if (value.isEmpty()) {
                return Expr.or(expr, Expr.isNull(fieldName));
            } else {
                return expr;
            }
        }
    }
    return null;
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:19,代码来源:FilterConfig.java


示例7: findByNameConf

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
     * Retrieve a taxonomy by name. The origin of these subjects is from the configuration file.
     * @param title
     * @return taxonomy object
     */
    public static Taxonomy findByNameConf(String name) {
    	Taxonomy res = new Taxonomy();
    	if (name != null && name.length() > 0) {
//    		Logger.debug("p1: " + name);
    		if (name.contains(Const.COMMA)) {
    			name = name.replace(Const.COMMA, Const.COMMA + " "); // in database entry with comma has additional space after comma
    		}
    		res = findTaxonomy.where()
    				.eq(Const.NAME, name)
    				.not(Expr.icontains(Const.PARENT, Const.ACT_URL))
//                Expr.icontains(Const.FIELD_URL_NODE, filter),
//                Expr.icontains(Const.TITLE, filter)
//             ))
//    				.(Const.PARENT, Const.ACT_URL)
    				.findUnique();
    	} else {
    		res.name = Const.NONE;
    	}
//		Logger.debug("res: " + res);
    	return res;
    }
 
开发者ID:ukwa,项目名称:w3act,代码行数:27,代码来源:Taxonomy.java


示例8: pageByTypeAll

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Return a page of Taxonomy by Type
 *
 * @param page Page to display
 * @param pageSize Number of targets per page
 * @param sortBy Target property used for sorting
 * @param order Sort order (either or asc or desc)
 * @param type Taxonomy type
 * @param filter Filter applied on the name column
 */
public static Page<Taxonomy> pageByTypeAll(int page, int pageSize, String sortBy, String order, 
		String filter) {

    return findTaxonomy.where()
    		.icontains(Const.NAME, filter)
     	.add(Expr.or(
              Expr.icontains(Const.TTYPE, Const.SUBJECT),
              Expr.icontains(Const.TTYPE, Const.SUBSUBJECT)
     		))
     	.add(Expr.or(
              Expr.isNull(Const.PARENT),
              Expr.not(Expr.icontains(Const.PARENT, Const.ACT_URL))
     		))
    		.orderBy(sortBy + " " + order)
    		.findPagingList(pageSize)
    		.setFetchAhead(false)
    		.getPage(page);
}
 
开发者ID:ukwa,项目名称:w3act,代码行数:29,代码来源:Taxonomy.java


示例9: findSharedRunsByUser

import com.avaje.ebean.Expr; //导入依赖的package包/类
@Transactional
public List<WorkflowRun> findSharedRunsByUser(Long uid) {
    User user = User.find.byId(uid);

    // Get a list of the user's groups
    List<Long> groupIds = new ArrayList<Long>();
    for (UserGroup group : user.getGroups()) {
        groupIds.add(group.getId());
    }

    List<WorkflowRun> shareList = WorkflowRun.find.where().disjunction().add(Expr.eq("users.id", uid)).add(Expr.in("groups.id", groupIds)).findList();

    return shareList;
}
 
开发者ID:kurator-org,项目名称:kurator-web,代码行数:15,代码来源:UserAccessDao.java


示例10: readTimeTracks

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
* returns all timeTracks from user, which are between from and to
* @param user
* @param from
* @param to
* @return
* @throws NotFoundException
*/
@Override
public List<TimeTrack> readTimeTracks(User user, DateTime from, DateTime to) {
   if(from.isAfter(to))
      return Collections.emptyList();

   // following query also includes activeTimeTrack, if there is one (case 1)
   List<TimeTrack> _timeTracks =
       Ebean.find(TimeTrack.class)
       .where().and(
           Expr.eq("user_id", user.getId()),
           Expr.or(
              Expr.or(
                 Expr.between("start", "end", from),   // case1
                 Expr.between("start", "end", to)      // case2
              ),

              Expr.and(
                 Expr.ge("start", from),              // case3: when given times are surrounding inspected timeTrack
                 Expr.le("end", to)
              )
           )
       ).setOrderBy("start").findList();

   if(_timeTracks == null) {
       _timeTracks = Collections.emptyList();
   }
    // also include actual timeTrack, if it is in given timeRange
   try {
       TimeTrack activeTimeTrack = readActiveTimeTrack(user);
       if(from.isBefore(activeTimeTrack.getFrom()) && to.isAfter(activeTimeTrack.getFrom())) {
           _timeTracks.add(activeTimeTrack);
       }
   } catch (Exception e) {
       // do anything if no actual timeTrack is available...
   }
   return _timeTracks;
}
 
开发者ID:peerdavid,项目名称:ComeAndGo,代码行数:46,代码来源:TimeTrackingRepositoryImpl.java


示例11: readAcceptedPayoutsFromUser

import com.avaje.ebean.Expr; //导入依赖的package包/类
@Override
public List<Payout> readAcceptedPayoutsFromUser(int userId) throws TimeTrackException {
    List<Payout> payouts =
        Ebean.find(Payout.class)
            .where().and(
                Expr.eq("user_id", userId),
                Expr.eq("state", RequestState.REQUEST_ACCEPTED)
            ).findList();

    if (payouts == null || payouts.isEmpty()) {
        return Collections.emptyList();
    }

    return payouts;
}
 
开发者ID:peerdavid,项目名称:ComeAndGo,代码行数:16,代码来源:PayoutRepositoryImpl.java


示例12: readTimeOffsFromUser

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * The following things can happen, when reading timetracks from the db which are in range:
 *
 *      +-------------+
 *      |Request range|
 *      +-------------+
 *      .             .
 *  +---------+       .
 *  |  Case1  |       .
 *  +---------+       .
 *      .        +--------+
 *      .        | Case2  |
 *      .        +--------+
 *      .             .
 * +-----------------------+
 * |       Case3           |
 * +-----------------------+
 *      .             .
 *      . +---------+ .
 *      . |  Case4  | .
 *      . +---------+ .
 */
@Override
public List<TimeOff> readTimeOffsFromUser(User user, DateTime from, DateTime to) throws TimeTrackException {

    List<TimeOff> timeOffs =
            Ebean.find(TimeOff.class)
                    .where().and(
                    Expr.eq("user_id", user.getId()),
                    Expr.or(
                            Expr.or(
                                    Expr.between("start", "end", from),     // Case 1
                                    Expr.between("start", "end", to)),      // Case 2
                            Expr.or(
                                    Expr.and(                               // Case 3
                                            Expr.lt("start", from),
                                            Expr.gt("end", to)
                                    ),
                                    Expr.and(                               // Case 4
                                            Expr.gt("start", from),
                                            Expr.lt("end", to)
                                    )
                            )
                    )
            ).findList();

    if(timeOffs == null) {
        return Collections.emptyList();
    }

    return timeOffs;
}
 
开发者ID:peerdavid,项目名称:ComeAndGo,代码行数:53,代码来源:TimeOffRepositoryImpl.java


示例13: isPortfolioEntryViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the main information of a portfolio entry.
 * 
 * @param portfolioEntryId
 *            the portfolio entry id
 * @param securityService
 *            the security service
 */
public static boolean isPortfolioEntryViewAllowed(Long portfolioEntryId, ISecurityService securityService) {
    try {
        return getPortfolioEntriesViewAllowedAsQuery(securityService).add(Expr.eq("id", portfolioEntryId)).findRowCount() > 0;
    } catch (AccountManagementException e) {
        Logger.error("DefaultDynamicResourceHandler.isPortfolioEntryViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:18,代码来源:PortfolioEntryDynamicHelper.java


示例14: isBudgetBucketViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the details of a budget bucket.
 * 
 * @param budgetBucketId
 *            the budget bucket id
 * @param securityService
 *            the security service
 */
public static boolean isBudgetBucketViewAllowed(Long budgetBucketId, ISecurityService securityService) {
    try {
        return getBudgetBucketsViewAllowedAsQuery(Expr.eq("id", budgetBucketId), null, securityService).findRowCount() > 0 ? true : false;
    } catch (AccountManagementException e) {
        Logger.error("BudgetBucketDynamicHelper.isBudgetBucketViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:18,代码来源:BudgetBucketDynamicHelper.java


示例15: isPortfolioViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the details of a portfolio.
 * 
 * @param portfolioId
 *            the portfolio id
 * @param securityService
 *            the security service
 */
public static boolean isPortfolioViewAllowed(Long portfolioId, ISecurityService securityService) {
    try {
        return getPortfoliosViewAllowedAsQuery(Expr.eq("id", portfolioId), null, securityService).findRowCount() > 0 ? true : false;
    } catch (AccountManagementException e) {
        Logger.error("PortfolioDynamicHelper.isPortfolioViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:18,代码来源:PortfolioDynamicHelper.java


示例16: isTimesheetReportApprovalAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can display and provide approval for a timesheet report.
 * 
 * @param timesheetReportId
 *            the timesheet report id
 * @param securityService
 *            the security service
 */
public static boolean isTimesheetReportApprovalAllowed(Long timesheetReportId, ISecurityService securityService) {
    try {
        return getTimesheetReportsApprovalAllowedAsQuery(Expr.eq("id", timesheetReportId), null, securityService).findRowCount() > 0 ? true : false;
    } catch (AccountManagementException e) {
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:17,代码来源:TimesheetReportDynamicHelper.java


示例17: isOrgUnitViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the details of an org unit.
 * 
 * @param orgUnitId
 *            the org unit id
 * @param securityService
 *            the security service
 */
public static boolean isOrgUnitViewAllowed(Long orgUnitId, ISecurityService securityService) {
    try {
        return getOrgUnitsViewAllowedAsQuery(Expr.eq("id", orgUnitId), null, securityService).findRowCount() > 0 ? true : false;
    } catch (AccountManagementException e) {
        Logger.error("OrgUnitDynamicHelper.isOrgUnitViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:18,代码来源:OrgUnitDynamicHelper.java


示例18: isActorViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the details of an actor.
 * 
 * @param actorId
 *            the actor id
 * @param securityService
 *            the security service
 */
public static boolean isActorViewAllowed(Long actorId, ISecurityService securityService) {
    try {
        return getActorsViewAllowedAsQuery(Expr.eq("id", actorId), null, securityService).findRowCount() > 0 ? true : false;
    } catch (AccountManagementException e) {
        Logger.error("ActorDynamicHelper.isActorViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:18,代码来源:ActorDynamicHelper.java


示例19: isReportViewAllowed

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Define if a user can view the details of a report.
 * 
 * @param reportingId
 *            the report id
 * @param securityService
 *            the security service
 */
public static boolean isReportViewAllowed(Long reportingId, ISecurityService securityService) {
    try {
        return getReportsViewAllowedAsQuery(Expr.eq("id", reportingId), null, securityService).query().setDistinct(true).findRowCount() > 0 ? true
                : false;
    } catch (AccountManagementException e) {
        Logger.error("ReportingDynamicHelper.isReportViewAllowed: impossible to get the user account");
        Logger.error(e.getMessage());
        return false;
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:19,代码来源:ReportingDynamicHelper.java


示例20: getTimesheetActivityAllocatedActorAsExprByActor

import com.avaje.ebean.Expr; //导入依赖的package包/类
/**
 * Get all allocation of an actor as an expression list.
 * 
 * @param actorId
 *            the actor id
 * @param activeOnly
 *            if true, it returns only the allocation for which the end date
 *            is in the future
 */
public static ExpressionList<TimesheetActivityAllocatedActor> getTimesheetActivityAllocatedActorAsExprByActor(Long actorId, boolean activeOnly) {

    ExpressionList<TimesheetActivityAllocatedActor> expr = findTimesheetActivityAllocatedActor.orderBy("endDate").where().eq("deleted", false)
            .eq("actor.id", actorId).eq("timesheetActivity.deleted", false);

    if (activeOnly) {
        expr = expr.add(Expr.or(Expr.isNull("endDate"), Expr.gt("endDate", new Date())));
    }

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Injector类代码示例发布时间:2022-05-22
下一篇:
Java HttpOp类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap