org.eclipse.persistence.jpa.jpql.parser.WhereClause.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(132)

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

WhereClause.<init>介绍

[英]Creates a new WhereClause.
[中]创建一个新的WhereClause

代码示例

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
   * {@inheritDoc}
   */
  @Override
  protected AbstractExpression buildExpression(AbstractExpression parent,
                         WordParser wordParser,
                         String word,
                         JPQLQueryBNF queryBNF,
                         AbstractExpression expression,
                         boolean tolerant) {

    expression = new WhereClause(parent);
    expression.parse(wordParser, tolerant);
    return expression;
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.jpql

/**
   * {@inheritDoc}
   */
  @Override
  protected AbstractExpression buildExpression(AbstractExpression parent,
                         WordParser wordParser,
                         String word,
                         JPQLQueryBNF queryBNF,
                         AbstractExpression expression,
                         boolean tolerant) {

    expression = new WhereClause(parent);
    expression.parse(wordParser, tolerant);
    return expression;
  }
}

代码示例来源:origin: stackoverflow.com

WhereClause whereClause = new WhereClause();

if(!(txt_billing2.getText().trim().isEmpty())) {
  whereClause.addParameter("BILLING", txt_billing2.getText().trim());
}

...

if(!(txt_umonth2.getText().trim().isEmpty())) {
  whereClause.addParameter("UMONTH ", txt_umonth2.getText().trim());
}

String sql = "SELECT * FROM airindia_sqlite" + whereClause.getWhereClause();
ps = con.prepareStatement(sql);

Map<Integer, Object> parameters = whereClause.getParameters();
for (Integer key : parameters.keySet()) {
  ps.setObject(key, parameters.get(key));
}

rs = ps.executeQuery();

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * {@inheritDoc}
 */
@Override
protected void parse(WordParser wordParser, boolean tolerant) {
  // Parse 'DELETE FROM'
  deleteClause = new DeleteClause(this);
  deleteClause.parse(wordParser, tolerant);
  hasSpace = wordParser.skipLeadingWhitespace() > 0;
  // Parse 'WHERE'
  if (wordParser.startsWithIdentifier(WHERE)) {
    whereClause = new WhereClause(this);
    whereClause.parse(wordParser, tolerant);
  }
  // Now fully qualify attribute names with a virtual identification variable
  accept(new FullyQualifyPathExpressionVisitor());
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.jpql

/**
 * {@inheritDoc}
 */
@Override
protected void parse(WordParser wordParser, boolean tolerant) {
  // Parse 'DELETE FROM'
  deleteClause = new DeleteClause(this);
  deleteClause.parse(wordParser, tolerant);
  hasSpace = wordParser.skipLeadingWhitespace() > 0;
  // Parse 'WHERE'
  if (wordParser.startsWithIdentifier(WHERE)) {
    whereClause = new WhereClause(this);
    whereClause.parse(wordParser, tolerant);
  }
  // Now fully qualify attribute names with a virtual identification variable
  accept(new FullyQualifyPathExpressionVisitor());
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * {@inheritDoc}
 */
@Override
protected void parse(WordParser wordParser, boolean tolerant) {
  // Parse 'UPDATE'
  updateClause = new UpdateClause(this);
  updateClause.parse(wordParser, tolerant);
  hasSpaceAfterUpdateClause = wordParser.skipLeadingWhitespace() > 0;
  // Parse 'WHERE'
  if (wordParser.startsWithIdentifier(WHERE)) {
    whereClause = new WhereClause(this);
    whereClause.parse(wordParser, tolerant);
  }
  // Now fully qualify attribute names with a virtual identification variable
  accept(new FullyQualifyPathExpressionVisitor());
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.jpql

/**
 * {@inheritDoc}
 */
@Override
protected void parse(WordParser wordParser, boolean tolerant) {
  // Parse 'UPDATE'
  updateClause = new UpdateClause(this);
  updateClause.parse(wordParser, tolerant);
  hasSpaceAfterUpdateClause = wordParser.skipLeadingWhitespace() > 0;
  // Parse 'WHERE'
  if (wordParser.startsWithIdentifier(WHERE)) {
    whereClause = new WhereClause(this);
    whereClause.parse(wordParser, tolerant);
  }
  // Now fully qualify attribute names with a virtual identification variable
  accept(new FullyQualifyPathExpressionVisitor());
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.jpql

whereClause = new WhereClause(this);
whereClause.parse(wordParser, tolerant);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

whereClause = new WhereClause(this);
whereClause.parse(wordParser, tolerant);

相关文章