*/ public function findAll(); /** * Returns the total number objects of this repository. * * @return int The object count */ public function countAll(); /** * Removes all objects of this repository as if remove() was called for * all of them. */ public function removeAll(); /** * Finds an object matching the given identifier. * * @param int $uid The identifier of the object to find * @return object The matching object if found, otherwise NULL * @phpstan-return T|null */ public function findByUid($uid); /** * Finds an object matching the given identifier. * * @param mixed $identifier The identifier of the object to find * @return object The matching object if found, otherwise NULL * @phpstan-return T|null */ public function findByIdentifier($identifier); /** * Sets the property names to order the result by per default. * Expected like this: * array( * 'foo' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING, * 'bar' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING * ) * * @param array $defaultOrderings The property names to order by */ public function setDefaultOrderings(array $defaultOrderings); /** * Sets the default query settings to be used in this repository * * @param \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings The query settings to be used by default */ public function setDefaultQuerySettings(QuerySettingsInterface $defaultQuerySettings); /** * Returns a query for objects of this repository * * @return \TYPO3\CMS\Extbase\Persistence\QueryInterface * @phpstan-return QueryInterface */ public function createQuery(); }