‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface:
TYPO3\CMS\Extbase\Persistence\Generic\Backend TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Fixtures\TearDownableBackendInterface

Public Member Functions

 setPersistenceManager (PersistenceManagerInterface $persistenceManager)
 
 setAggregateRootObjects (ObjectStorage $objects)
 
 setDeletedEntities (ObjectStorage $entities)
 
 setChangedEntities (ObjectStorage $entities)
 
 commit ()
 
string null getIdentifierByObject ($object)
 
object null getObjectByIdentifier ($identifier, $className)
 
bool isNewObject ($object)
 
int getObjectCountByQuery (QueryInterface $query)
 
list< array< string, mixed > > getObjectDataByQuery (QueryInterface $query)
 

Detailed Description

A persistence backend interface

Definition at line 25 of file BackendInterface.php.

Member Function Documentation

◆ commit()

TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::commit ( )

Commits the current persistence session

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ getIdentifierByObject()

string null TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::getIdentifierByObject (   $object)

Returns the (internal) identifier for the object, if it is known to the backend. Otherwise NULL is returned.

Parameters
object$object
Returns
‪string|null The identifier for the object if it is known, or NULL

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ getObjectByIdentifier()

object null TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::getObjectByIdentifier (   $identifier,
  $className 
)

Returns the object with the (internal) identifier, if it is known to the backend. Otherwise NULL is returned.

Parameters
string$identifier
string$className
Returns
‪object|null The object for the identifier if it is known, or NULL

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ getObjectCountByQuery()

int TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::getObjectCountByQuery ( QueryInterface  $query)

Returns the number of records matching the query.

Returns
‪int

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ getObjectDataByQuery()

list<array<string,mixed> > TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::getObjectDataByQuery ( QueryInterface  $query)

Returns the object data matching the $query.

Returns
‪list<array<string,mixed>>

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ isNewObject()

bool TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::isNewObject (   $object)

Checks if the given object has ever been persisted.

Parameters
object$object‪The object to check
Returns
‪bool TRUE if the object is new, FALSE if the object exists in the repository

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ setAggregateRootObjects()

TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::setAggregateRootObjects ( ObjectStorage  $objects)

Sets the aggregate root objects

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ setChangedEntities()

TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::setChangedEntities ( ObjectStorage  $entities)

Sets the changed objects

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ setDeletedEntities()

TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::setDeletedEntities ( ObjectStorage  $entities)

Sets the deleted entities

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Backend.

◆ setPersistenceManager()

TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface::setPersistenceManager ( PersistenceManagerInterface  $persistenceManager)