Class MapLiteral.MapValueLiteral

java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.MapLiteral.MapValueLiteral
All Implemented Interfaces:
SQLLiteral
Enclosing class:
MapLiteral

public static class MapLiteral.MapValueLiteral extends SQLExpression implements SQLLiteral
An SQL expression that will test if a column of a table falls within the given Map's values.
  • Field Details

    • value

      private final Map value
    • valueExpressions

      private List<SQLExpression> valueExpressions
      Expressions for all values in the Map
  • Constructor Details

    • MapValueLiteral

      public MapValueLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value)
      Constructor.
      Parameters:
      stmt - SQL Statement
      mapping - The mapping to the Map
      value - The transient Map that is the value.
  • Method Details

    • getValueExpressions

      public List<SQLExpression> getValueExpressions()
    • getValue

      public Object getValue()
      Description copied from interface: SQLLiteral
      Accessor to the literal value
      Specified by:
      getValue in interface SQLLiteral
      Returns:
      the value of the literal
    • setNotParameter

      public void setNotParameter()
      Description copied from interface: SQLLiteral
      Method to set this literal as not being a parameter. If the literal if not currently a parameter then does nothing. Updates any underlying SQL to have the value.
      Specified by:
      setNotParameter in interface SQLLiteral
    • setStatement

      protected void setStatement()