congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ExpressionMath.multiply
Code IndexAdd Tabnine to your IDE (free)

How to use
multiply
method
in
org.eclipse.persistence.expressions.ExpressionMath

Best Java code snippets using org.eclipse.persistence.expressions.ExpressionMath.multiply (Showing top 11 results out of 315)

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

/**
 * PUBLIC:
 * Return a new expression that applies the function to the given expression.
 */
public static Expression multiply(Expression left, int right) {
  return multiply(left, Integer.valueOf(right));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return a new expression that applies the function to the given expression.
 */
public static Expression multiply(Expression left, int right) {
  return multiply(left, new Integer(right));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return a new expression that applies the function to the given expression.
 */
public static Expression multiply(Expression left, int right) {
  return multiply(left, Integer.valueOf(right));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * {@inheritDoc}
 */
@Override
public void visit(MultiplicationExpression expression) {
  List<Class<?>> types = new ArrayList<Class<?>>(2);
  // Create the left side of the multiplication expression
  expression.getLeftExpression().accept(this);
  Expression leftExpression = queryExpression;
  types.add(type[0]);
  // Create the right side of the multiplication expression
  expression.getRightExpression().accept(this);
  Expression rightExpression = queryExpression;
  types.add(type[0]);
  // Now create the multiplication expression
  queryExpression = ExpressionMath.multiply(leftExpression, rightExpression);
  // Set the expression type
  Collections.sort(types, NumericTypeComparator.instance());
  type[0] = types.get(0);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * {@inheritDoc}
 */
@Override
public void visit(MultiplicationExpression expression) {
  List<Class<?>> types = new ArrayList<Class<?>>(2);
  // Create the left side of the multiplication expression
  expression.getLeftExpression().accept(this);
  Expression leftExpression = queryExpression;
  types.add(type[0]);
  // Create the right side of the multiplication expression
  expression.getRightExpression().accept(this);
  Expression rightExpression = queryExpression;
  types.add(type[0]);
  // Now create the multiplication expression
  queryExpression = ExpressionMath.multiply(leftExpression, rightExpression);
  // Set the expression type
  Collections.sort(types, NumericTypeComparator.instance());
  type[0] = types.get(0);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL
 * Generate the expression. The steps are:
 * 1. Generate the expression for the left node
 * 2. Add the .multiply to the where clause returned from step 1
 * 3. Generate the expression for the right side and use it as the parameter for the .multiply()
 * 4. Return the completed where clause to the caller
 */
public Expression generateExpression(GenerationContext context) {
  Expression whereClause = getLeft().generateExpression(context);
  whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context));
  return whereClause;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL
 * Generate the expression. The steps are:
 * 1. Generate the expression for the left node
 * 2. Add the .multiply to the where clause returned from step 1
 * 3. Generate the expression for the right side and use it as the parameter for the .multiply()
 * 4. Return the completed where clause to the caller
 */
public Expression generateExpression(GenerationContext context) {
  Expression whereClause = getLeft().generateExpression(context);
  whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context));
  return whereClause;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL
 * Generate the expression. The steps are:
 * 1. Generate the expression for the left node
 * 2. Add the .multiply to the where clause returned from step 1
 * 3. Generate the expression for the right side and use it as the parameter for the .multiply()
 * 4. Return the completed where clause to the caller
 */
public Expression generateExpression(GenerationContext context) {
  Expression whereClause = getLeft().generateExpression(context);
  whereClause = ExpressionMath.multiply(whereClause, getRight().generateExpression(context));
  return whereClause;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the product of its arguments.
 * 
 * @param x
 *            expression
 * @param y
 *            value
 * @return product
 */
public <N extends Number> Expression<N> prod(Expression<? extends N> x, N y){
  return new FunctionExpressionImpl(this.metamodel, (Class<N>)BasicTypeHelperImpl.getInstance().extendedBinaryNumericPromotion(x.getJavaType(), y.getClass()), ExpressionMath.multiply(((InternalSelection)x).getCurrentNode(),y), buildList(x,internalLiteral(y)), "prod");
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the product of its arguments.
 * 
 * @param x
 *            value
 * @param y
 *            expression
 * @return product
 */
public <N extends Number> Expression<N> prod(N x, Expression<? extends N> y){
  return new FunctionExpressionImpl(this.metamodel, (Class<N>)BasicTypeHelperImpl.getInstance().extendedBinaryNumericPromotion(x.getClass(), y.getJavaType()), ExpressionMath.multiply(new ConstantExpression(x, ((InternalSelection)y).getCurrentNode()),((InternalSelection)y).getCurrentNode()), buildList(internalLiteral(x),y), "prod");
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the product of its arguments.
 * 
 * @param x
 *            expression
 * @param y
 *            expression
 * @return product
 */
public <N extends Number> Expression<N> prod(Expression<? extends N> x, Expression<? extends N> y){
  return new FunctionExpressionImpl(this.metamodel, (Class<N>)BasicTypeHelperImpl.getInstance().extendedBinaryNumericPromotion(x.getJavaType(), y.getJavaType()), ExpressionMath.multiply(((InternalSelection)x).getCurrentNode(),((InternalSelection)y).getCurrentNode()), buildList(x,y), "prod");
}
org.eclipse.persistence.expressionsExpressionMathmultiply

Javadoc

PUBLIC: Return a new expression that applies the function to the given expression.

Popular methods of ExpressionMath

  • abs
    PUBLIC: Return a new expression that applies the function to the given expression.Example:> Exampl
  • add
    PUBLIC: Return a new expression that applies the function to the given expression.
  • atan2
    PUBLIC: Return a new expression that applies the function to the given expression.
  • divide
    PUBLIC: Return a new expression that applies the function to the given expression.
  • max
    PUBLIC: Return a new expression that applies the function to the given expression.
  • min
    PUBLIC: Return a new expression that applies the function to the given expression.
  • mod
    PUBLIC: Return a new expression that applies the function to the given expression.
  • power
    PUBLIC: Return a new expression that applies the function to the given expression.
  • round
    PUBLIC: Return a new expression that applies the function to the given expression.
  • subtract
    PUBLIC: Return a new expression that applies the function to the given expression.
  • trunc
    PUBLIC: Return a new expression that applies the function to the given expression.
  • sqrt
    PUBLIC: Return a new expression that applies the function to the given expression.
  • trunc,
  • sqrt,
  • negate

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Notification (javax.management)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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