Class ListGetMethod
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.method.ListGetMethod
-
-
Constructor Summary
Constructors Constructor Description ListGetMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SQLExpression
getAsInnerJoin(SQLStatement stmt, 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(SQLStatement stmt, 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(SQLStatement stmt, SQLExpression expr, java.util.List<SQLExpression> args)
Return the expression for this SQL function.
-
-
-
Method Detail
-
getExpression
public SQLExpression getExpression(SQLStatement stmt, SQLExpression expr, java.util.List<SQLExpression> args)
Description copied from interface:SQLMethod
Return the expression for this SQL function.- Specified by:
getExpression
in interfaceSQLMethod
- Parameters:
stmt
- SQLStatement that this expression is forexpr
- The expression that it is invoked onargs
- Arguments passed in- Returns:
- The SQL expression using the SQL function
-
getAsSubquery
protected SQLExpression getAsSubquery(SQLStatement stmt, 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.- Parameters:
stmt
- SQLStatementlistExpr
- The list expressionidxExpr
- The index expression- Returns:
- The element expression
-
getAsInnerJoin
protected SQLExpression getAsInnerJoin(SQLStatement stmt, 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.- Parameters:
stmt
- SQLStatementlistExpr
- The list expressionidxExpr
- The index expression- Returns:
- The element expression
-
-