public class CollectionSizeMethod extends AbstractSQLMethod
SELECT COUNT(*) FROM COLLTABLE A0_SUB WHERE A0_SUB.OWNER_ID_OID = A0.OWNER_IDwhere A0 is the candidate table in the outer query, and COLLTABLE is the join table (if using join collection) or the element table (if using FK collection).
clr, exprFactory, LOCALISER, stmt
Constructor and Description |
---|
CollectionSizeMethod() |
Modifier and Type | Method and Description |
---|---|
SQLExpression |
getExpression(SQLExpression expr,
List args)
Return the expression for this SQL function.
|
getMappingForClass, setStatement
public SQLExpression getExpression(SQLExpression expr, List args)
SQLMethod
expr
- The expression that it is invoked onargs
- Arguments passed inCopyright © 2023. All rights reserved.