All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.expression.AbstractValueExpression Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.expression;

/**
 * Abstract expression that helps with named parameter use.
 */
abstract class AbstractValueExpression extends AbstractExpression {

  protected final Object bindValue;

  /**
   * Construct with property name and potential named parameter.
   */
  protected AbstractValueExpression(String propName, Object bindValue) {
    super(propName);
    this.bindValue = bindValue;
  }

  /**
   * Return the bind value taking into account named parameters.
   */
  protected Object value() {
    return NamedParamHelp.value(bindValue);
  }

  /**
   * Return the String bind value taking into account named parameters.
   */
  protected String strValue() {
    return NamedParamHelp.valueAsString(bindValue);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy