Tabnine Logo
ListExpressionOperator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.expressions.ListExpressionOperator
constructor

Best Java code snippets using org.eclipse.persistence.expressions.ListExpressionOperator.<init> (Showing top 17 results out of 315)

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: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, String)
 */
public static ExpressionOperator caseStatement() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Case);
  exOperator.bePrefix();
  exOperator.setNodeClass(FunctionExpression.class);
  exOperator.setIsBindingSupported(false);
  return exOperator;
}
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/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator coalesce() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Coalesce);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setStartString("COALESCE(");
  exOperator.setSeparator(",");
  exOperator.setTerminationString(" )");
  return exOperator;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator coalesce() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Coalesce);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setStartString("COALESCE(");
  exOperator.setSeparator(",");
  exOperator.setTerminationString(" )");
  return exOperator;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, String)
 */
public static ExpressionOperator coalesce() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Coalesce);
  exOperator.bePrefix();
  exOperator.setNodeClass(FunctionExpression.class);
  exOperator.setStartString("COALESCE(");
  exOperator.setSeparator(",");
  exOperator.setTerminationString(" )");
  return exOperator;
}
 
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator caseStatement() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Case);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setIsBindingSupported(false);
  exOperator.setStartString("CASE ");
  exOperator.setSeparators(new String[]{" WHEN ", " THEN "});
  exOperator.setTerminationStrings(new String[]{" ELSE ", " END"});
  return exOperator;
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator caseStatement() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(Case);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setIsBindingSupported(false);
  exOperator.setStartString("CASE ");
  exOperator.setSeparators(new String[]{" WHEN ", " THEN "});
  exOperator.setTerminationStrings(new String[]{" ELSE ", " END"});
  return exOperator;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator caseConditionStatement() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(CaseCondition);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setIsBindingSupported(false);
  exOperator.setStartStrings(new String[]{"CASE WHEN ", " THEN "});
  exOperator.setSeparators(new String[]{" WHEN ", " THEN "});
  exOperator.setTerminationStrings(new String[]{" ELSE ", " END "});
  return exOperator;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Build operator.
 * Note: This operator works differently from other operators.
 * @see Expression#caseStatement(Map, Object)
 */
public static ExpressionOperator caseConditionStatement() {
  ListExpressionOperator exOperator = new ListExpressionOperator();
  exOperator.setType(FunctionOperator);
  exOperator.setSelector(CaseCondition);
  exOperator.bePrefix();
  exOperator.setNodeClass(ClassConstants.ArgumentListFunctionExpression_Class);
  exOperator.setIsBindingSupported(false);
  exOperator.setStartStrings(new String[]{"CASE WHEN ", " THEN "});
  exOperator.setSeparators(new String[]{" WHEN ", " THEN "});
  exOperator.setTerminationStrings(new String[]{" ELSE ", " END "});
  return exOperator;
}
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

ListExpressionOperator operator = new ListExpressionOperator();
operator.setSelector(ExpressionOperator.Case);
operator.setNodeClass(FunctionExpression.class);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

ListExpressionOperator operator = new ListExpressionOperator();
operator.setSelector(ExpressionOperator.Case);
operator.setNodeClass(FunctionExpression.class);
org.eclipse.persistence.expressionsListExpressionOperator<init>

Popular methods of ListExpressionOperator

  • bePrefix
  • copyTo
  • incrementNumberOfItems
  • setIsBindingSupported
  • setNodeClass
  • setNumberOfItems
  • setSelector
  • setSeparator
  • setSeparators
  • setStartString
  • setStartStrings
  • setTerminationString
  • setStartStrings,
  • setTerminationString,
  • setTerminationStrings,
  • setType,
  • getNumberOfItems,
  • setIsComplete

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • CodeWhisperer alternatives
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