Count any matching object from the space, visible under the default transaction.
Declaration Syntax
Parameters
- template (Object)
- The template/query used for matching.
Return Value
Number of matching entries.
Exceptions
Exception | Condition |
---|---|
UnusableEntryException | A serialized field of the object being read cannot be deserialized. |
TransactionException | Transaction error occured. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |
SqlQueryException | The query template is an illegal SqlQuery. |