‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface:
TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend

Public Member Functions

int addRow (string $tableName, array $fieldValues, bool $isRelation=false)
 
 updateRow (string $tableName, array $fieldValues, bool $isRelation=false)
 
 updateRelationTableRow (string $tableName, array $fieldValues)
 
 removeRow (string $tableName, array $where, bool $isRelation=false)
 
int getObjectCountByQuery (QueryInterface $query)
 
array getObjectDataByQuery (QueryInterface $query)
 
int null getUidOfAlreadyPersistedValueObject (AbstractValueObject $object)
 

Detailed Description

Storage backend interface

Definition at line 26 of file BackendInterface.php.

Member Function Documentation

◆ addRow()

int TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::addRow ( string  $tableName,
array  $fieldValues,
bool  $isRelation = false 
)

Adds a row to the storage

Parameters
string$tableName‪The database table name
array$fieldValues‪The fieldValues to insert
bool$isRelation‪TRUE if we are currently inserting into a relation table, FALSE by default
Returns
‪int the UID of the inserted row

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ getObjectCountByQuery()

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

Returns the number of items matching the query.

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

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ getObjectDataByQuery()

array TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::getObjectDataByQuery ( QueryInterface  $query)

Returns the object data matching the $query.

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

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ getUidOfAlreadyPersistedValueObject()

int null TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::getUidOfAlreadyPersistedValueObject ( AbstractValueObject  $object)

Checks if a Value Object equal to the given Object exists in the data base

Parameters
\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject$object‪The Value Object
Returns
‪int|null The matching uid if an object was found, else null
Todo:
‪this is the last monster in this persistence series. refactor!

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ removeRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::removeRow ( string  $tableName,
array  $where,
bool  $isRelation = false 
)

Deletes a row in the storage

Parameters
string$tableName‪The database table name
array$where‪An array of where array('fieldname' => value). This array will be transformed to a WHERE clause
bool$isRelation‪TRUE if we are currently inserting into a relation table, FALSE by default

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ updateRelationTableRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::updateRelationTableRow ( string  $tableName,
array  $fieldValues 
)

Updates a relation row in the storage

Parameters
string$tableName‪The database relation table name
array$fieldValues‪The fieldValues to be updated

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ updateRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::updateRow ( string  $tableName,
array  $fieldValues,
bool  $isRelation = false 
)

Updates a row in the storage

Parameters
string$tableName‪The database table name
array$fieldValues‪The fieldValues to update
bool$isRelation‪TRUE if we are currently inserting into a relation table, FALSE by default

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.