TYPO3  7.6
Public Member Functions | List of all members
BackendInterface Interface Reference
Inheritance diagram for BackendInterface:
Typo3DbBackend

Public Member Functions

 addRow ($tableName, array $fieldValues, $isRelation=false)
 
 updateRow ($tableName, array $fieldValues, $isRelation=false)
 
 updateRelationTableRow ($tableName, array $fieldValues)
 
 removeRow ($tableName, array $where, $isRelation=false)
 
 getMaxValueFromTable ($tableName, array $where, $columnName)
 
 getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getUidOfAlreadyPersistedValueObject (\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject $object)
 

Detailed Description

Storage backend interface

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

Member Function Documentation

addRow (   $tableName,
array  $fieldValues,
  $isRelation = false 
)

Adds a row to the storage

Parameters
string$tableNameThe database table name
array$fieldValuesThe fieldValues to insert
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
int the UID of the inserted row

Implemented in Typo3DbBackend.

getMaxValueFromTable (   $tableName,
array  $where,
  $columnName 
)

Fetches maximal value for given table column

Parameters
string$tableNameThe database table name
array$whereAn array of where array('fieldname' => value). This array will be transformed to a WHERE clause
string$columnNamecolumn name to get the max value from
Returns
mixed the max value

Implemented in Typo3DbBackend.

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

Returns the number of items matching the query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
int
getObjectDataByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the object data matching the $query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
array
getUidOfAlreadyPersistedValueObject ( \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject  $object)

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

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

Implemented in Typo3DbBackend.

removeRow (   $tableName,
array  $where,
  $isRelation = false 
)

Deletes a row in the storage

Parameters
string$tableNameThe database table name
array$whereAn array of where array('fieldname' => value). This array will be transformed to a WHERE clause
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
mixed|void

Implemented in Typo3DbBackend.

updateRelationTableRow (   $tableName,
array  $fieldValues 
)

Updates a relation row in the storage

Parameters
string$tableNameThe database relation table name
array$fieldValuesThe fieldValues to be updated
Returns
bool

Implemented in Typo3DbBackend.

updateRow (   $tableName,
array  $fieldValues,
  $isRelation = false 
)

Updates a row in the storage

Parameters
string$tableNameThe database table name
array$fieldValuesThe fieldValues to update
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
mixed|void

Implemented in Typo3DbBackend.