本文整理了Java中org.hsweb.web.bean.common.QueryParam.<init>
方法的一些代码示例,展示了QueryParam.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryParam.<init>
方法的具体详情如下:
包路径:org.hsweb.web.bean.common.QueryParam
类名称:QueryParam
方法名:<init>
暂无
代码示例来源:origin: org.hsweb/hsweb-web-service-simple
/**
* 根据资源md5 查询资源信息
*
* @param md5 md5值
* @return 资源对象
* @throws Exception
*/
@Cacheable(value = CACHE_KEY, key = "'md5.'+#md5")
@Transactional(readOnly = true)
public Resources selectByMd5(String md5) {
return this.selectSingle(new QueryParam().where("md5", md5));
}
代码示例来源:origin: org.hsweb/hsweb-web-service-api
default List<ModuleMeta> selectByKey(String key) {
QueryParam queryParam = new QueryParam();
queryParam.where("key", key);
return this.select(queryParam);
}
代码示例来源:origin: org.hsweb/hsweb-web-service-simple
@Override
public List<Module> selectByPid(String pid) throws Exception {
return this.select(new QueryParam().where("parentId", pid));
}
}
代码示例来源:origin: org.hsweb/hsweb-web-service-api
/**
* 指定一个dao映射接口,接口需继承{@link GenericMapper}创建dsl数据查询对象<br>
* 可通过返回的Query对象进行dsl方式操作如:<br>
* <code>
* createQuery(userMapper).where("id",1).single();
* </code>
*
* @param mapper dao映射结构
* @param <PO> PO泛型
* @param <PK> 主键泛型
* @return {@link Query}
* @see Query
* @see org.hsweb.ezorm.core.Conditional
* @since 2.2
*/
static <PO, PK> Query<PO, QueryParam> createQuery(GenericMapper<PO, PK> mapper) {
Query<PO, QueryParam> query = new Query<>(new QueryParam());
query.setListExecutor(mapper::select);
query.setTotalExecutor(mapper::total);
query.setSingleExecutor((param) -> {
param.doPaging(0, 1);
List<PO> list = mapper.select(param);
if (null == list || list.size() == 0) return null;
else return list.get(0);
});
return query;
}
}
代码示例来源:origin: org.hsweb/hsweb-web-dao-mybatis
public String buildOrder(String resultMapId, String tableName, QueryParam param) throws Exception {
Map<String, Object> fieldConfig = createConfig(resultMapId);
QueryParam tmp = new QueryParam();
tmp.setSorts(param.getSorts());
Map<String, String> propertyMapper = getPropertyMapper(fieldConfig, tmp);
代码示例来源:origin: org.hsweb/hsweb-web-service-api
/**
* 创建本服务的dsl查询操作对象
* 可通过返回的Query对象进行dsl方式操作如:<br>
* <code>
* createQuery().where("id",1).single();
* </code>
*
* @return {@link Query}
* @see Query
* @see org.hsweb.ezorm.core.Conditional
* @since 2.2
*/
default Query<Po, QueryParam> createQuery() {
Query<Po, QueryParam> query = Query.empty(new QueryParam());
query.setListExecutor(this::select);
query.setTotalExecutor(this::total);
query.setSingleExecutor(this::selectSingle);
return query;
}
内容来源于网络,如有侵权,请联系作者删除!