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

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

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

Limit.isRowCountJdbcParameter介绍

暂无

代码示例

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

public void deparseLimit(Limit limit) {
  // LIMIT n OFFSET skip 
  buffer.append(" LIMIT ");
  if (limit.isRowCountJdbcParameter()) {
    buffer.append("?");
  } else if (limit.getRowCount() != 0) {
    buffer.append(limit.getRowCount());
  } else {
    /*
     from mysql docs:
     For compatibility with PostgreSQL, MySQL also supports the LIMIT row_count OFFSET offset syntax.
     To retrieve all rows from a certain offset up to the end of the result set, you can use some large number
     for the second parameter. 
     */
    buffer.append("18446744073709551615");
  }
  if (limit.isOffsetJdbcParameter()) {
    buffer.append(" OFFSET ?");
  } else if (limit.getOffset() != 0) {
    buffer.append(" OFFSET " + limit.getOffset());
  }
}

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

public void deparseLimit(Limit limit) {
  // LIMIT n OFFSET skip 
  buffer.append(" LIMIT ");
  if (limit.isRowCountJdbcParameter()) {
    buffer.append("?");
  } else if (limit.getRowCount() != 0) {
    buffer.append(limit.getRowCount());
  } else {
    /*
     from mysql docs:
     For compatibility with PostgreSQL, MySQL also supports the LIMIT row_count OFFSET offset syntax.
     To retrieve all rows from a certain offset up to the end of the result set, you can use some large number
     for the second parameter. 
     */
    buffer.append("18446744073709551615");
  }
  if (limit.isOffsetJdbcParameter()) {
    buffer.append(" OFFSET ?");
  } else if (limit.getOffset() != 0) {
    buffer.append(" OFFSET " + limit.getOffset());
  }
}

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

public PgLimit(Limit limit)
{
  this.offset = limit.getOffset();
  this.rowCount = limit.getRowCount();
  this.rowCountJdbcParameter = limit.isRowCountJdbcParameter();
  this.offsetJdbcParameter = limit.isOffsetJdbcParameter();
  this.limitAll = limit.isLimitAll();
}

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

if (limit.isRowCountJdbcParameter()) {
  buffer.append("?");
} else if (limit.getRowCount() != 0) {
if (limit.isRowCountJdbcParameter()) {
  buffer.append("?");
} else {

相关文章