TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
BackendInterface Interface Reference
Inheritance diagram for BackendInterface:
Backend

Public Member Functions

 setPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager)
 
 setAggregateRootObjects (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $objects)
 
 setDeletedEntities (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $entities)
 
 setChangedEntities (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $entities)
 
 commit ()
 
 getIdentifierByObject ($object)
 
 getObjectByIdentifier ($identifier, $className)
 
 isNewObject ($object)
 
 getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 

Detailed Description

A persistence backend interface

Definition at line 20 of file extbase/Classes/Persistence/Generic/BackendInterface.php.

Member Function Documentation

commit ( )

Commits the current persistence session

Returns
void

Implemented in Backend.

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 Backend.

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 Backend.

getObjectCountByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the number of records matching the query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
int

Implemented in Backend.

getObjectDataByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the object data matching the $query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
array

Implemented in Backend.

isNewObject (   $object)

Checks if the given object has ever been persisted.

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

Implemented in Backend.

setAggregateRootObjects ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $objects)

Sets the aggregate root objects

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$objects
Returns
void

Implemented in Backend.

setChangedEntities ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $entities)

Sets the changed objects

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$entities
Returns
void

Implemented in Backend.

setDeletedEntities ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $entities)

Sets the deleted entities

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$entities
Returns
void

Implemented in Backend.

setPersistenceManager ( \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface  $persistenceManager)

Set a PersistenceManager instance.

Parameters
\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface$persistenceManager
Returns
void

Implemented in Backend.