com.tcdng.unify.core.database.Query.ignoreEmptyCriteria()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中com.tcdng.unify.core.database.Query.ignoreEmptyCriteria方法的一些代码示例,展示了Query.ignoreEmptyCriteria的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.ignoreEmptyCriteria方法的具体详情如下:
包路径:com.tcdng.unify.core.database.Query
类名称:Query
方法名:ignoreEmptyCriteria

Query.ignoreEmptyCriteria介绍

暂无

代码示例

代码示例来源:origin: com.tcdng.unify/unify-web

protected void doSetSearchFilter(Query<T> query) throws UnifyException {
  query.ignoreEmptyCriteria(true);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-file

@Override
  public List<? extends Listable> execute(Locale locale, ZeroParams params) throws UnifyException {
    BatchFileDefinitionQuery query = new BatchFileDefinitionQuery();
    query.order("description").ignoreEmptyCriteria(true);
    return this.getFileModule().findBatchFileDefinitions(query);
  }
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-system

@Override
protected List<ApplicationMenuItem> find() throws UnifyException {
  ApplicationMenuItemQuery query = new ApplicationMenuItemQuery();
  query.menuId(searchMenuId);
  if (getSearchStatus() != null) {
    query.status(getSearchStatus());
  }
  query.order("caption").ignoreEmptyCriteria(true);
  return getSystemService().findMenuItems(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-workflow

@Override
protected List<WfCategory> find() throws UnifyException {
  WfCategoryQuery query = new WfCategoryQuery();
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.nameLike(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  if (searchStatus != null) {
    query.status(searchStatus);
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getWorkflowService().findWfCategories(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-system

@Override
protected List<Authentication> find() throws UnifyException {
  AuthenticationQuery query = new AuthenticationQuery();
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.nameLike(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  if (getSearchStatus() != null) {
    query.status(getSearchStatus());
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getSystemService().findAuthentications(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-organization

@Override
protected List<Department> find() throws UnifyException {
  DepartmentQuery query = new DepartmentQuery();
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.name(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  if (getSearchStatus() != null) {
    query.status(getSearchStatus());
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getOrganizationService().findDepartments(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-organization

@Override
protected List<Branch> find() throws UnifyException {
  BranchQuery query = new BranchQuery();
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.name(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  if (getSearchStatus() != null) {
    query.status(getSearchStatus());
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getOrganizationService().findBranches(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-workflow

@Override
protected List<WfDoc> find() throws UnifyException {
  WfDocQuery query = new WfDocQuery();
  if (QueryUtils.isValidLongCriteria(searchWfCategoryId)) {
    query.wfCategoryId(searchWfCategoryId);
  }
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.nameLike(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  if (searchStatus != null) {
    query.wfCategoryStatus(searchStatus);
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getWorkflowService().findWfDocs(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-organization

@Override
  public List<? extends Listable> execute(Locale locale, AssignParams params) throws UnifyException {
    if (QueryUtils.isValidStringCriteria(params.getFilterId1())) {
      PrivilegeQuery query = new PrivilegeQuery();
      query.privilegeCategoryId(params.getFilterId1(Long.class));
      if (QueryUtils.isValidStringCriteria(params.getFilterId2())) {
        query.moduleId(params.getFilterId2(Long.class));
      }

      if (params.isAssignedIdList()) {
        query.idNotIn(params.getAssignedIdList(Long.class));
      }

      query.select("id", "description").order("description").ignoreEmptyCriteria(true);
      return getOrganizationService().findPrivileges(query);
    }

    return Collections.emptyList();
  }
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-system

@Override
protected List<SystemParameter> find() throws UnifyException {
  SystemParameterQuery query = new SystemParameterQuery();
  if (QueryUtils.isValidLongCriteria(searchModuleId)) {
    query.moduleId(searchModuleId);
  }
  if (searchType != null) {
    query.type(searchType);
  }
  if (QueryUtils.isValidStringCriteria(searchName)) {
    query.nameLike(searchName);
  }
  if (QueryUtils.isValidStringCriteria(searchDescription)) {
    query.descriptionLike(searchDescription);
  }
  query.order("description").ignoreEmptyCriteria(true);
  return getSystemService().findSysParameters(query);
}

代码示例来源:origin: com.tcdng.jacklyn/jacklyn-system

db().updateAll(new SystemAssetQuery().installed(Boolean.TRUE), update);
ShortcutTileQuery dtQuery = (ShortcutTileQuery) new ShortcutTileQuery().clear().ignoreEmptyCriteria(true);
db().updateAll(dtQuery, update);

相关文章