Class ArrayExpression

  • Direct Known Subclasses:
    ArrayLiteral

    public class ArrayExpression
    extends SQLExpression
    Representation of array expression.
    • Field Detail

      • elementExpressions

        protected java.util.List<SQLExpression> elementExpressions
        Expressions for all elements in the array.
    • Constructor Detail

      • ArrayExpression

        public ArrayExpression​(SQLStatement stmt,
                               SQLTable table,
                               JavaTypeMapping mapping)
        Constructor for an SQL expression for a (field) mapping in a specified table.
        Parameters:
        stmt - The statement
        table - The table in the statement
        mapping - The mapping for the field
      • ArrayExpression

        public ArrayExpression​(SQLStatement stmt,
                               JavaTypeMapping mapping,
                               SQLExpression[] exprs)
        Constructor for an SQL expression for an array expression specified in the query.
        Parameters:
        stmt - The statement
        mapping - The mapping for the field
        exprs - element expressions
    • Method Detail

      • getElementExpressions

        public java.util.List<SQLExpression> getElementExpressions()
      • invoke

        public SQLExpression invoke​(java.lang.String methodName,
                                    java.util.List<SQLExpression> args)
        Description copied from class: SQLExpression
        Invocation of a method on this expression.
        Overrides:
        invoke in class SQLExpression
        Parameters:
        methodName - name of the method to invoke
        args - Args to this method (if any)
        Returns:
        the converted value