Tabnine Logo
ArgumentListFunctionExpression.setBaseExpression
Code IndexAdd Tabnine to your IDE (free)

How to use
setBaseExpression
method
in
org.eclipse.persistence.internal.expressions.ArgumentListFunctionExpression

Best Java code snippets using org.eclipse.persistence.internal.expressions.ArgumentListFunctionExpression.setBaseExpression (Showing top 15 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Add a new Expression to the list of arguments.
 * This method will update the list of arguments and any constant strings that are required
 * to be printed with the arguments
 * @param argument
 */
@Override
public synchronized void addChild(Expression argument){
  if (hasLastChild != null && hasLastChild.booleanValue()){
    getChildren().add(getChildren().size() - 1, argument);
  } else {
    super.addChild(argument);
  }
  setBaseExpression(getChildren().firstElement());
  ((ListExpressionOperator)operator).incrementNumberOfItems();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Add a new Expression to the list of arguments.  
 * This method will update the list of arguments and any constant strings that are required
 * to be printed with the arguments
 * @param argument
 */
@Override
public synchronized void addChild(Expression argument){
  if (hasLastChild != null && hasLastChild.booleanValue()){
    getChildren().add(getChildren().size() - 1, argument);
  } else {
    super.addChild(argument);
  }
  setBaseExpression((Expression)getChildren().firstElement());
  ((ListExpressionOperator)operator).incrementNumberOfItems();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Add a new Expression to the list of arguments.  
 * This method will update the list of arguments and any constant strings that are required
 * to be printed with the arguments
 * @param argument
 */
@Override
public synchronized void addChild(Expression argument){
  if (hasLastChild != null && hasLastChild.booleanValue()){
    getChildren().add(getChildren().size() - 1, argument);
  } else {
    super.addChild(argument);
  }
  setBaseExpression((Expression)getChildren().firstElement());
  ((ListExpressionOperator)operator).incrementNumberOfItems();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

Expression base = Expression.from(iterator.next(), this);
expression.addChild(base);
expression.setBaseExpression(base);//base needs to be the same as the first child for reportQuery items.
while (iterator.hasNext()) {
  expression.addChild(Expression.from(iterator.next(), this));
origin: com.haulmont.thirdparty/eclipselink

Expression base = Expression.from(iterator.next(), this);
expression.addChild(base);
expression.setBaseExpression(base);//base needs to be the same as the first child for reportQuery items. 
while (iterator.hasNext()) {
  expression.addChild(Expression.from(iterator.next(), this));
origin: org.eclipse.persistence/org.eclipse.persistence.core

public ArgumentListFunctionExpression coalesce() {
  ListExpressionOperator coalesceOperator = (ListExpressionOperator)getOperator(ExpressionOperator.Coalesce);
  ListExpressionOperator clonedCoalesceOperator = new ListExpressionOperator();
  coalesceOperator.copyTo(clonedCoalesceOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCoalesceOperator);
  return expression;
}
origin: com.haulmont.thirdparty/eclipselink

public ArgumentListFunctionExpression coalesce() {
  ListExpressionOperator coalesceOperator = (ListExpressionOperator)getOperator(ExpressionOperator.Coalesce);
  ListExpressionOperator clonedCoalesceOperator = new ListExpressionOperator();
  coalesceOperator.copyTo(clonedCoalesceOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCoalesceOperator);
  return expression;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Creates an ArgumentListFunctionExpression that is capable of creating a case statement of the form:
 * <blockquote><pre>
 * SQL: CASE name WHEN "Robert" THEN "Bob"
 *     WHEN "Susan" THEN "Sue"
 *  ELSE "No-Nickname"
 * </pre></blockquote>
 * 
 * This expression must be manipulated to successfully build a case statement by adding appropriate 
 * children to it.
 * 
 * A child must be added for the "case expression" (name above), a pair of children must be added for 
 * each "when then" expression and a child must be added for the else.
 * 
 * @see ArgumentListFunctionExpression
 */
public ArgumentListFunctionExpression caseStatement() {
  
  ListExpressionOperator caseOperator = (ListExpressionOperator)getOperator(ExpressionOperator.Case);
  ListExpressionOperator clonedCaseOperator = new ListExpressionOperator();
  caseOperator.copyTo(clonedCaseOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCaseOperator);
  return expression;
}
 
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Creates an ArgumentListFunctionExpression that is capable of creating a case statement of the form:
 * <blockquote><pre>
 * SQL: CASE WHEN name = "Robert" THEN "Bob"
 *     WHEN name = "Susan" THEN "Sue"
 *  ELSE "No-Nickname" 
 * </pre></blockquote>
 * 
 * This expression must be manipulated to successfully build a case statement by adding appropriate 
 * children to it.
 * 
 * A pair of children must be added for  each "when then" expression and a child must be added for the else.
 * 
 * @see ArgumentListFunctionExpression
 */
public ArgumentListFunctionExpression caseConditionStatement() {
  ListExpressionOperator caseOperator = (ListExpressionOperator)getOperator(ExpressionOperator.CaseCondition);
  ListExpressionOperator clonedCaseOperator = new ListExpressionOperator();
  caseOperator.copyTo(clonedCaseOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCaseOperator);
  return expression;
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Creates an ArgumentListFunctionExpression that is capable of creating a case statement of the form:
 * <blockquote><pre>
 * SQL: CASE name WHEN "Robert" THEN "Bob"
 *     WHEN "Susan" THEN "Sue"
 *  ELSE "No-Nickname"
 * </pre></blockquote>
 *
 * This expression must be manipulated to successfully build a case statement by adding appropriate
 * children to it.
 *
 * A child must be added for the "case expression" (name above), a pair of children must be added for
 * each "when then" expression and a child must be added for the else.
 *
 * @see ArgumentListFunctionExpression
 */
public ArgumentListFunctionExpression caseStatement() {
  ListExpressionOperator caseOperator = (ListExpressionOperator)getOperator(ExpressionOperator.Case);
  ListExpressionOperator clonedCaseOperator = new ListExpressionOperator();
  caseOperator.copyTo(clonedCaseOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCaseOperator);
  return expression;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Creates an ArgumentListFunctionExpression that is capable of creating a case statement of the form:
 * <blockquote><pre>
 * SQL: CASE WHEN name = "Robert" THEN "Bob"
 *     WHEN name = "Susan" THEN "Sue"
 *  ELSE "No-Nickname"
 * </pre></blockquote>
 *
 * This expression must be manipulated to successfully build a case statement by adding appropriate
 * children to it.
 *
 * A pair of children must be added for  each "when then" expression and a child must be added for the else.
 *
 * @see ArgumentListFunctionExpression
 */
public ArgumentListFunctionExpression caseConditionStatement() {
  ListExpressionOperator caseOperator = (ListExpressionOperator)getOperator(ExpressionOperator.CaseCondition);
  ListExpressionOperator clonedCaseOperator = new ListExpressionOperator();
  caseOperator.copyTo(clonedCaseOperator);
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(clonedCaseOperator);
  return expression;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public ArgumentListFunctionExpression coalesce() {
  ListExpressionOperator anOperator = new ListExpressionOperator();
  anOperator.setSelector(ExpressionOperator.Coalesce);
  anOperator.setNodeClass(FunctionExpression.class);
  anOperator.setType(ExpressionOperator.FunctionOperator);
  anOperator.bePrefix();
  anOperator.setStartString("COALESCE(");
  anOperator.setSeparator(",");
  anOperator.setTerminationString(" )");
  ArgumentListFunctionExpression expression = new ArgumentListFunctionExpression();
  expression.setBaseExpression(this);
  expression.setOperator(anOperator);
  return expression;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

Expression base = Expression.from(iterator.next(), this);
expression.addChild(base);
expression.setBaseExpression(base);//base needs to be the same as the first child for reportQuery items. 
while (iterator.hasNext()) {
  expression.addChild(Expression.from(iterator.next(), this));
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

expression.setBaseExpression(this);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

expression.setBaseExpression(this);
org.eclipse.persistence.internal.expressionsArgumentListFunctionExpressionsetBaseExpression

Popular methods of ArgumentListFunctionExpression

  • <init>
  • addChild
    INTERNAL: Add a new Expression to the list of arguments. This method will update the list of argumen
  • getChildren
  • getPlatformOperator
  • setOperator
    INTERNAL: Set the operator for this expression. The operator must be a ListExpressionOperator This m
  • addRightMostChild
    INTERNAL: Add a child and ensure it is the rightmost in the tree as long as it is in the tree If the

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now