Class SQLNumericMethod
java.lang.Object
org.datanucleus.store.rdbms.sql.method.SQLNumericMethod
- All Implemented Interfaces:
SQLMethod
Method to allow inclusion of any SQL code that returns a numeric.
The original expression will be of the form
SQL_numeric("some sql")
which is compiled into
InvokeExpression{STATIC.SQL_numeric(Literal{some sql})-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(SQLStatement stmt, SQLExpression ignore, List<SQLExpression> args) Return the expression for this SQL function.
-
Constructor Details
-
SQLNumericMethod
public SQLNumericMethod()
-
-
Method Details
-
getExpression
public SQLExpression getExpression(SQLStatement stmt, SQLExpression ignore, List<SQLExpression> args) Description copied from interface:SQLMethodReturn the expression for this SQL function.- Specified by:
getExpressionin interfaceSQLMethod- Parameters:
stmt- SQLStatement that this expression is forignore- The expression that it is invoked onargs- Arguments passed in- Returns:
- The SQL expression using the SQL function
-