org.h2.command.dml.Query.init()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(137)

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

Query.init介绍

[英]Initialize the query.
[中]初始化查询。

代码示例

代码示例来源:origin: com.h2database/h2

private Query parseSelect() {
  Query command = null;
  int paramIndex = parameters.size();
  command = parseSelectUnion();
  ArrayList<Parameter> params = New.arrayList();
  for (int i = paramIndex, size = parameters.size(); i < size; i++) {
    params.add(parameters.get(i));
  }
  command.setParameterList(params);
  command.init();
  return command;
}

代码示例来源:origin: com.h2database/h2

private Prepared parseWithStatementOrQuery() {
  int paramIndex = parameters.size();
  Prepared command = parseWith();
  ArrayList<Parameter> params = New.arrayList();
  for (int i = paramIndex, size = parameters.size(); i < size; i++) {
    params.add(parameters.get(i));
  }
  command.setParameterList(params);
  if (command instanceof Query) {
    Query query = (Query) command;
    query.init();
  }
  return command;
}

代码示例来源:origin: com.h2database/h2

@Override
public void init() {
  if (SysProperties.CHECK && checkInit) {
    DbException.throwInternalError();
  }
  checkInit = true;
  left.init();
  right.init();
  int len = left.getColumnCount();
  if (len != right.getColumnCount()) {
    throw DbException.get(ErrorCode.COLUMN_COUNT_DOES_NOT_MATCH);
  }
  ArrayList<Expression> le = left.getExpressions();
  // set the expressions to get the right column count and names,
  // but can't validate at this time
  expressions = New.arrayList();
  for (int i = 0; i < len; i++) {
    Expression l = le.get(i);
    expressions.add(l);
  }
}

代码示例来源:origin: com.h2database/h2

read(")");
query.setParameterList(new ArrayList<>(parameters));
query.init();
Session s;
if (createView != null) {

代码示例来源:origin: com.eventsourcing/h2

private Query parseSelect() {
  int paramIndex = parameters.size();
  Query command = parseSelectUnion();
  ArrayList<Parameter> params = New.arrayList();
  for (int i = paramIndex, size = parameters.size(); i < size; i++) {
    params.add(parameters.get(i));
  }
  command.setParameterList(params);
  command.init();
  return command;
}

代码示例来源:origin: org.wowtools/h2

private Query parseSelect() {
  int paramIndex = parameters.size();
  Query command = parseSelectUnion();
  ArrayList<Parameter> params = New.arrayList();
  for (int i = paramIndex, size = parameters.size(); i < size; i++) {
    params.add(parameters.get(i));
  }
  command.setParameterList(params);
  command.init();
  return command;
}

代码示例来源:origin: org.wowtools/h2

@Override
public void init() {
  if (SysProperties.CHECK && checkInit) {
    DbException.throwInternalError();
  }
  checkInit = true;
  left.init();
  right.init();
  int len = left.getColumnCount();
  if (len != right.getColumnCount()) {
    throw DbException.get(ErrorCode.COLUMN_COUNT_DOES_NOT_MATCH);
  }
  ArrayList<Expression> le = left.getExpressions();
  // set the expressions to get the right column count and names,
  // but can't validate at this time
  expressions = New.arrayList();
  for (int i = 0; i < len; i++) {
    Expression l = le.get(i);
    expressions.add(l);
  }
}

代码示例来源:origin: com.eventsourcing/h2

@Override
public void init() {
  if (SysProperties.CHECK && checkInit) {
    DbException.throwInternalError();
  }
  checkInit = true;
  left.init();
  right.init();
  int len = left.getColumnCount();
  if (len != right.getColumnCount()) {
    throw DbException.get(ErrorCode.COLUMN_COUNT_DOES_NOT_MATCH);
  }
  ArrayList<Expression> le = left.getExpressions();
  // set the expressions to get the right column count and names,
  // but can't validate at this time
  expressions = New.arrayList();
  for (int i = 0; i < len; i++) {
    Expression l = le.get(i);
    expressions.add(l);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

public void init() throws SQLException {
  if (SysProperties.CHECK && checkInit) {
    throw Message.getInternalError();
  }
  checkInit = true;
  left.init();
  right.init();
  int len = left.getColumnCount();
  if (len != right.getColumnCount()) {
    throw Message.getSQLException(ErrorCode.COLUMN_COUNT_DOES_NOT_MATCH);
  }
  ObjectArray le = left.getExpressions();
  // set the expressions to get the right column count and names,
  // but can't validate at this time
  expressions = new ObjectArray();
  for (int i = 0; i < len; i++) {
    Expression l = (Expression) le.get(i);
    expressions.add(l);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

private Query parseSelect() throws SQLException {
  int paramIndex = parameters.size();
  Query command = parseSelectUnion();
  ObjectArray params = new ObjectArray();
  for (int i = paramIndex; i < parameters.size(); i++) {
    params.add(parameters.get(i));
  }
  command.setParameterList(params);
  command.init();
  return command;
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

query.init();
Session s;
if (prepared != null && prepared instanceof CreateView) {

代码示例来源:origin: com.eventsourcing/h2

read(")");
query.setParameterList(New.arrayList(parameters));
query.init();
Session s;
if (createView != null) {

代码示例来源:origin: org.wowtools/h2

read(")");
query.setParameterList(New.arrayList(parameters));
query.init();
Session s;
if (createView != null) {

相关文章