Class MapValueMethod
java.lang.Object
org.datanucleus.store.rdbms.sql.method.MapValueMethod
- All Implemented Interfaces:
SQLMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SQLExpressiongetAsJoin(SQLStatement parentStmt, MapExpression mapExpr) Implementation of VALUE(map) using a join to the table representing the map, and returning the value.protected SQLExpressiongetAsSubquery(SQLStatement stmt, MapExpression mapExpr) Implementation of VALUE(map) using a subquery on the table representing the map, returning the value.getExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args) Return the expression for this SQL function.
-
Constructor Details
-
MapValueMethod
public MapValueMethod()
-
-
Method Details
-
getExpression
Description copied from interface:SQLMethodReturn the expression for this SQL function.- Specified by:
getExpressionin 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
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
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
-