Interface LiteralExpressionFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LiteralExpressionFactory
Factory to create literal value expressions.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(@Nullable Object value)
    Creates a literal value expression.
    create(@Nullable Object value, boolean parameter)
    Creates a literal value expression that may be treated as a bind parameter.
  • Method Details

    • create

      LiteralExpression create(@Nullable Object value)
      Creates a literal value expression.
      Parameters:
      value - The literal value to be represented.
      Returns:
      A new literal expression.
    • create

      default LiteralExpression create(@Nullable Object value, boolean parameter)
      Creates a literal value expression that may be treated as a bind parameter.
      Parameters:
      value - The literal value to be represented.
      parameter - Whether this literal should be treated as a bind parameter.
      Returns:
      A new literal expression.