Class MapValueMethod
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.method.MapValueMethod
-
-
Constructor Summary
Constructors Constructor Description MapValueMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SQLExpression
getAsJoin(SQLStatement parentStmt, MapExpression mapExpr)
Implementation of VALUE(map) using a join to the table representing the map, and returning the value.protected SQLExpression
getAsSubquery(SQLStatement stmt, MapExpression mapExpr)
Implementation of VALUE(map) using a subquery on the table representing the map, returning the value.SQLExpression
getExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args)
Return the expression for this SQL function.
-
-
-
Method Detail
-
getExpression
public SQLExpression getExpression(SQLStatement stmt, SQLExpression expr, 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
-
getAsJoin
protected SQLExpression getAsJoin(SQLStatement parentStmt, MapExpression mapExpr)
Implementation of VALUE(map) using a join to the table representing the map, and returning the value.- Parameters:
parentStmt
- The parent SQL statementmapExpr
- The map expression- Returns:
- The value expression
-
getAsSubquery
protected SQLExpression getAsSubquery(SQLStatement stmt, MapExpression mapExpr)
Implementation of VALUE(map) using a subquery on the table representing the map, returning the value.- Parameters:
stmt
- SQLStatementmapExpr
- The map expression- Returns:
- The value expression
-
-