use of org.sagacity.sqltoy.model.inner.QueryExecutorExtend in project sagacity-sqltoy by chenrenfei.
the class SqlToyDaoSupport method getCountByQuery.
/**
* @todo 指定数据源查询记录数量
* @param queryExecutor
* @return
*/
protected Long getCountByQuery(final QueryExecutor queryExecutor) {
QueryExecutorExtend extend = queryExecutor.getInnerModel();
SqlToyConfig sqlToyConfig = sqlToyContext.getSqlToyConfig(extend.sql, SqlType.search, getDialect(extend.dataSource));
return dialectFactory.getCountBySql(sqlToyContext, queryExecutor, sqlToyConfig, this.getDataSource(extend.dataSource, sqlToyConfig));
}
Aggregations