def findDocuments(self, documentFilter): queryBuilder = ZDocumentQueryBuilder(documentFilter) sql = queryBuilder.build() return self._select(sql, None, ZDocumentIDOListQueryHandler())
def getDocumentCount(self, filter): queryBuilder = ZDocumentQueryBuilder(filter) sql = queryBuilder.build(True) return self._select(sql, None, ZSingleItemQueryHandler())