public class ListGetMethod extends AbstractSQLMethod
clr, exprFactory, LOCALISER, stmt
Constructor and Description |
---|
ListGetMethod() |
Modifier and Type | Method and Description |
---|---|
protected SQLExpression |
getAsInnerJoin(CollectionExpression listExpr,
SQLExpression idxExpr)
Implementation of List.get() using an inner join to the table representing the list,
adding a condition on the index and returning the element.
|
protected SQLExpression |
getAsSubquery(CollectionExpression listExpr,
SQLExpression idxExpr)
Implementation of Collection.get() using a subquery on the table representing the collection,
adding a condition on the index and returning the element.
|
SQLExpression |
getExpression(SQLExpression expr,
List args)
Return the expression for this SQL function.
|
getMappingForClass, setStatement
public SQLExpression getExpression(SQLExpression expr, List args)
SQLMethod
expr
- The expression that it is invoked onargs
- Arguments passed inprotected SQLExpression getAsSubquery(CollectionExpression listExpr, SQLExpression idxExpr)
listExpr
- The list expressionidxExpr
- The index expressionprotected SQLExpression getAsInnerJoin(CollectionExpression listExpr, SQLExpression idxExpr)
listExpr
- The list expressionidxExpr
- The index expressionCopyright © 2023. All rights reserved.