Class MapLiteral

  • All Implemented Interfaces:
    SQLLiteral

    public class MapLiteral
    extends MapExpression
    implements SQLLiteral
    An SQL expression that will test if a column of a table falls within the given Map. This is used for queries where a Map is passed in as a parameter.
    • Constructor Detail

      • MapLiteral

        public MapLiteral​(SQLStatement stmt,
                          JavaTypeMapping mapping,
                          Object value,
                          String parameterName)
        Constructor for a map literal with a value.
        Parameters:
        stmt - The SQLStatement the MapLiteral will be used in.
        mapping - The mapping to the Map
        value - The Map that is the value.
        parameterName - Name of the parameter that this represents if any (JDBC "?")
    • Method Detail

      • 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