Difference between revisions of "GetRecordCount"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
 
Line 6: Line 6:
;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
int count = Functions.getRecordCount(String objectId, String criteria);  
int count = Functions.getRecordCount(String objectName, String criteria);  
</syntaxhighlight>
</syntaxhighlight>


;Parameters:
;Parameters:
:;objectId:The object identifier
:;objectName:The object name or identifier
:;criteria:A [[JAVA API:Filter Expressions in JAVA APIs|filter expression]] that specifies records to select{{#ifeq: {{PAGENAME}}|Java API:Composite Objects|, where a field name of the form <tt>alias[.alias...].*</tt> or <tt>alias[.alias...].field</tt> indicates a [[Composite Object]] search|}}.
:;criteria:A [[JAVA API:Filter Expressions in JAVA APIs|filter expression]] that specifies records to select{{#ifeq: {{PAGENAME}}|Java API:Composite Objects|, where a field name of the form <tt>alias[.alias...].*</tt> or <tt>alias[.alias...].field</tt> indicates a [[Composite Object]] search|}}.



Latest revision as of 18:34, 30 September 2011

Gets a count of records in an Object that match specified filtering criteria.

Syntax
int count = Functions.getRecordCount(String objectName, String criteria);
Parameters
objectName
The object name or identifier
criteria
A filter expression that specifies records to select.
Returns
An integer containing a count of records that match the selection criteria.