本文整理了Java中dk.eobjects.metamodel.query.Query.getMaxRows
方法的一些代码示例,展示了Query.getMaxRows
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getMaxRows
方法的具体详情如下:
包路径:dk.eobjects.metamodel.query.Query
类名称:Query
方法名:getMaxRows
暂无
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-jdbc
/**
* If the maxrows property of the query is set, then we will use MySQLs
* LIMIT function.
*/
@Override
public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
String queryString = super.rewriteQuery(strategy, query);
Integer maxRows = query.getMaxRows();
if (maxRows != null && maxRows > 0) {
queryString = queryString + " LIMIT " + maxRows;
}
return queryString;
}
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
/**
* If the maxrows property of the query is set, then we will use MySQLs
* LIMIT function.
*/
@Override
public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
String queryString = super.rewriteQuery(strategy, query);
Integer maxRows = query.getMaxRows();
if (maxRows != null && maxRows > 0) {
queryString = queryString + " LIMIT " + maxRows;
}
return queryString;
}
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof Query) {
Query that = (Query) obj;
EqualsBuilder eb = new EqualsBuilder();
eb.append(this.getMaxRows(), that.getMaxRows());
eb.append(this.getSelectClause(), that.getSelectClause());
eb.append(this.getFromClause(), that.getFromClause());
eb.append(this.getWhereClause(), that.getWhereClause());
eb.append(this.getGroupByClause(), that.getGroupByClause());
eb.append(this.getHavingClause(), that.getHavingClause());
eb.append(this.getOrderByClause(), that.getOrderByClause());
return eb.isEquals();
}
return false;
}
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-jdbc
Integer maxRows = query.getMaxRows();
if (maxRows != null) {
try {
代码示例来源:origin: dk.eobjects.commons/MetaModel
Integer maxRows = query.getMaxRows();
if (maxRows != null) {
try {
代码示例来源:origin: dk.eobjects.commons/MetaModel
previewTable: if (query.getMaxRows() != null && whereItems.isEmpty()
&& groupByItems.isEmpty() && havingItems.isEmpty()
&& orderByItems.isEmpty() && fromItems.size() == 1) {
.getMaxRows());
dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
return dataSet;
dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
if (query.getMaxRows() != null) {
dataSet = new DataSet(new MaxRowsDataSetStrategyWrapper(dataSet,
query.getMaxRows()));
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-querypostprocessor
previewTable: if (query.getMaxRows() != null && whereItems.isEmpty()
&& groupByItems.isEmpty() && havingItems.isEmpty()
&& orderByItems.isEmpty() && fromItems.size() == 1) {
.getMaxRows());
dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
return dataSet;
if (query.getMaxRows() != null) {
dataSet = new DataSet(new MaxRowsDataSetStrategyWrapper(dataSet,
query.getMaxRows()));
内容来源于网络,如有侵权,请联系作者删除!