net.sf.jsqlparser.statement.select.Limit.setRowCount()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(202)

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

Limit.setRowCount介绍

暂无

代码示例

代码示例来源:origin: alibaba/mdrill

case S_INTEGER:
 token = jj_consume_token(S_INTEGER);
                       limit.setRowCount(Long.parseLong(token.image));
 break;
case 83:
 case S_INTEGER:
  token = jj_consume_token(S_INTEGER);
                           limit.setRowCount(Long.parseLong(token.image));
  break;
 case 83:

代码示例来源:origin: JSQLParser/JSqlParser

case S_LONG:{
    token = jj_consume_token(S_LONG);
limit.setRowCount(new LongValue(token.image));
    break;
limit.setRowCount(jdbc);
    break;
limit.setRowCount(new JdbcNamedParameter());
    if (jj_2_48(2)) {
     token = jj_consume_token(S_IDENTIFIER);

代码示例来源:origin: JSQLParser/JSqlParser

case S_LONG:{
     token = jj_consume_token(S_LONG);
limit.setRowCount(new LongValue(token.image));
     break;
limit.setRowCount(jdbc);
     break;
limit.setRowCount(new JdbcNamedParameter());
     if (jj_2_46(2)) {
      token = jj_consume_token(S_IDENTIFIER);

代码示例来源:origin: org.opencadc/cadc-jsqlparser-compat

case S_INTEGER:{
    token = jj_consume_token(S_INTEGER);
limit.setRowCount(Long.parseLong(token.image));
    break;
    case S_INTEGER:{
     token = jj_consume_token(S_INTEGER);
limit.setRowCount(Long.parseLong(token.image));
     break;

代码示例来源:origin: metatron-app/metatron-discovery

public PlainSelect addLimit(PlainSelect selectBody, int maxLimit) {
 Limit limitExpression = new Limit();
 limitExpression.setRowCount(new LongValue(maxLimit));
 selectBody.setLimit(limitExpression);
 return selectBody;
}

代码示例来源:origin: com.eas.platypus/platypus-js-sql-parser

limit.setCommentAfterCommaValue(token.specialToken.image);
            limit.setRowCount(Long.parseLong(token.image));
break;
       limit.setCommentLimitValue(token.specialToken.image);
                limit.setRowCount(Long.parseLong(token.image));
 break;

代码示例来源:origin: org.opencadc/cadc-adql

if (limit != null)
  limit.setRowCount(rowCount);
  limit.setRowCount(rowCount);
  plainSelect.setLimit(limit);

代码示例来源:origin: io.github.itfinally/mybatis-paging

private MySqlHook( String originSql, long beginRow, long range ) throws JSQLParserException {
  final Limit limit = new Limit();
  limit.setRowCount( new LongValue( range ) );
  limit.setOffset( new LongValue( beginRow ) );

代码示例来源:origin: zhicwu/cassandra-jdbc-driver

if (limit == null) {
  limit = new Limit();
  limit.setRowCount(rowLimit);
  plainSelect.setLimit(limit);
} else {
    limit.setRowCount(rowLimit);

代码示例来源:origin: diennea/herddb

private void visitLimit(Limit limit) {
  if (limit.getOffset() != null) {
    if (limit.getOffset() instanceof JdbcParameter) {
      limit.setOffset(ImmutableExpressionsCache.internOrFixJdbcParameterExpression((JdbcParameter) limit.getOffset()));
    }
    limit.getOffset().accept(this);
  }
  if (limit.getRowCount() != null) {
    if (limit.getRowCount() instanceof JdbcParameter) {
      limit.setRowCount(ImmutableExpressionsCache.internOrFixJdbcParameterExpression((JdbcParameter) limit.getRowCount()));
    }
    limit.getRowCount().accept(this);
  }
}

代码示例来源:origin: com.github.jsqlparser/jsqlparser

case S_LONG:{
    token = jj_consume_token(S_LONG);
limit.setRowCount(new LongValue(token.image));
    break;
limit.setRowCount(jdbc);
    break;
limit.setRowCount(new JdbcNamedParameter());
    if (jj_2_47(2)) {
     token = jj_consume_token(S_IDENTIFIER);

代码示例来源:origin: com.github.jsqlparser/jsqlparser

case S_LONG:{
     token = jj_consume_token(S_LONG);
limit.setRowCount(new LongValue(token.image));
     break;
limit.setRowCount(jdbc);
     break;
limit.setRowCount(new JdbcNamedParameter());
     if (jj_2_45(2)) {
      token = jj_consume_token(S_IDENTIFIER);

相关文章