Class ArrayLiteral

    • Constructor Detail

      • ArrayLiteral

        public ArrayLiteral​(SQLStatement stmt,
                            JavaTypeMapping mapping,
                            Object value,
                            String parameterName)
        Constructor for an array literal with a value.
        Parameters:
        stmt - The SQL statement
        mapping - the mapping to use
        value - the array value
        parameterName - Name of the parameter that this represents if any (as 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
      • setStatement

        protected void setStatement()