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

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

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

origin: com.haulmont.thirdparty/eclipselink

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

/**
 * PUBLIC:
 * Return a new expression that applies the function to the given expression.
 */
public static Expression mod(Expression expression, int base) {
  return mod(expression, Integer.valueOf(base));
}
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 mod(Expression expression, int base) {
  return mod(expression, new Integer(base));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/** */
public Expression generateExpression(GenerationContext context) {
  return ExpressionMath.mod(getLeft().generateExpression(context),
               getDenominator().generateExpression(context));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the modulus of its arguments.
 * 
 * @param x
 *            expression
 * @param y
 *            expression
 * @return modulus
 */
public Expression<Integer> mod(Expression<Integer> x, Expression<Integer> y){
  return new FunctionExpressionImpl(this.metamodel, ClassConstants.INTEGER, ExpressionMath.mod(((InternalSelection)x).getCurrentNode(),((InternalSelection)y).getCurrentNode()), buildList(x,y), "mod");
}
origin: com.haulmont.thirdparty/eclipselink

/** */
public Expression generateExpression(GenerationContext context) {
  return ExpressionMath.mod(getLeft().generateExpression(context), 
               getDenominator().generateExpression(context));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the modulus of its arguments.
 * 
 * @param x
 *            expression
 * @param y
 *            value
 * @return modulus
 */
public Expression<Integer> mod(Expression<Integer> x, Integer y){
  return new FunctionExpressionImpl(this.metamodel, ClassConstants.INTEGER, ExpressionMath.mod(((InternalSelection)x).getCurrentNode(),y), buildList(x,internalLiteral(y)), "mod");
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/** */
public Expression generateExpression(GenerationContext context) {
  return ExpressionMath.mod(getLeft().generateExpression(context), 
               getDenominator().generateExpression(context));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * {@inheritDoc}
 */
@Override
public void visit(ModExpression expression) {
  // First create the Expression for the first expression
  expression.getFirstExpression().accept(this);
  Expression leftExpression = queryExpression;
  // Now create the Expression for the second expression
  expression.getSecondExpression().accept(this);
  Expression rightExpression = queryExpression;
  // Now create the MOD expression
  queryExpression = ExpressionMath.mod(leftExpression, rightExpression);
  // Set the expression type
  type[0] = Integer.class;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * {@inheritDoc}
 */
@Override
public void visit(ModExpression expression) {
  // First create the Expression for the first expression
  expression.getFirstExpression().accept(this);
  Expression leftExpression = queryExpression;
  // Now create the Expression for the second expression
  expression.getSecondExpression().accept(this);
  Expression rightExpression = queryExpression;
  // Now create the MOD expression
  queryExpression = ExpressionMath.mod(leftExpression, rightExpression);
  // Set the expression type
  type[0] = Integer.class;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an expression that returns the modulus of its arguments.
 * 
 * @param x
 *            value
 * @param y
 *            expression
 * @return modulus
 */
public Expression<Integer> mod(Integer x, Expression<Integer> y){
  Expression xExp = internalLiteral(x);
  return new FunctionExpressionImpl(this.metamodel, ClassConstants.INTEGER, ExpressionMath.mod(((InternalSelection)xExp).getCurrentNode(),((InternalSelection)y).getCurrentNode()), buildList(xExp,y), "mod");
}
org.eclipse.persistence.expressionsExpressionMathmod

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.
  • multiply
    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

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • 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