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, setStatementpublic SQLExpression getExpression(SQLExpression expr, List args)
SQLMethodexpr - 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 © 2013. All Rights Reserved.