Class SingleCollectionLiteral

All Implemented Interfaces:
SQLLiteral

public class SingleCollectionLiteral extends SingleCollectionExpression implements SQLLiteral
Cover-all literal to represent "single collection" mapped types. Note that we should split this up if we ever want to have methods on particular types. For example we could have OptionalExpression and provide methods "isPresent" and "get".
  • Field Details

    • value

      private Object value
  • Constructor Details

  • Method Details

    • 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