public class MapSizeMethod extends Object implements SQLMethod
SELECT COUNT(*) FROM MAPTABLE A0_SUB WHERE A0_SUB.OWNER_ID_OID = A0.OWNER_IDwhere A0 is the candidate table in the outer query, and MAPTABLE is the join table (if using join map) or the key/value table (if using FK map).
Constructor and Description |
---|
MapSizeMethod() |
Modifier and Type | Method and Description |
---|---|
SQLExpression |
getExpression(SQLStatement stmt,
SQLExpression expr,
List<SQLExpression> args)
Return the expression for this SQL function.
|
public SQLExpression getExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args)
SQLMethod
getExpression
in interface SQLMethod
stmt
- SQLStatement that this expression is forexpr
- The expression that it is invoked onargs
- Arguments passed inCopyright © 2020. All rights reserved.