Property | Type | Description | |
---|---|---|---|
$addedObjects | SplObjectStorage | ||
$backend | Neos\Flow\Persistence\Generic\Backend\BackendInterface | ||
$changedObjects | SplObjectStorage | ||
$dataMapper | |||
$persistenceSession | |||
$queryFactory | Neos\Flow\Persistence\Generic\QueryFactoryInterface | ||
$removedObjects | SplObjectStorage |
Method | Description | |
---|---|---|
__construct ( ) | Create new instance | |
add ( object $object ) : void | Adds an object to the persistence. | |
clearState ( ) : void | Clears the in-memory state of the persistence. | |
createQueryForType ( string $type ) : Neos\Flow\Persistence\QueryInterface | Return a query object for the given type. | |
getIdentifierByObject ( object $object ) : mixed | Returns the (internal) identifier for the object, if it is known to the backend. Otherwise NULL is returned. | |
getObjectByIdentifier ( mixed $identifier, string $objectType = null, boolean $useLazyLoading = false ) : object | Returns the object with the (internal) identifier, if it is known to the backend. Otherwise NULL is returned. | |
getObjectCountByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : integer | Returns the number of records matching the query. | |
getObjectDataByIdentifier ( string $identifier, string $objectType = null ) : object | Returns the object data for the (internal) identifier, if it is known to the backend. Otherwise FALSE is returned. | |
getObjectDataByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : array | Returns the object data matching the $query. | |
initialize ( ) : void | Initializes the persistence manager | |
injectBackend ( Neos\Flow\Persistence\Generic\Backend\BackendInterface $backend ) : void | Injects the backend to use | |
injectDataMapper ( |
Injects the data mapper | |
injectPersistenceSession ( |
Injects the persistence session | |
injectQueryFactory ( Neos\Flow\Persistence\Generic\QueryFactoryInterface $queryFactory ) : void | Injects a QueryFactory instance | |
isConnected ( ) : boolean | Returns TRUE, if an active connection to the persistence backend has been established, e.g. entities can be persisted. | |
isNewObject ( object $object ) : boolean | Checks if the given object has ever been persisted. | |
persistAll ( boolean $onlyWhitelistedObjects = false ) : void | Commits new objects and changes to objects in the current persistence session into the backend | |
remove ( object $object ) : void | Removes an object to the persistence. | |
tearDown ( ) : void | Tear down the persistence | |
update ( object $object ) : void | Update an object in the persistence. |
Method | Description | |
---|---|---|
emitAllObjectsPersisted ( ) : void | Signals that all persistAll() has been executed successfully. |
public clearState ( ) : void | ||
return | void |
public createQueryForType ( string $type ) : Neos\Flow\Persistence\QueryInterface | ||
$type | string | |
return | Neos\Flow\Persistence\QueryInterface |
protected emitAllObjectsPersisted ( ) : void | ||
return | void |
public getIdentifierByObject ( object $object ) : mixed | ||
$object | object | |
return | mixed | The identifier for the object if it is known, or NULL |
public getObjectCountByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : integer | ||
$query | Neos\Flow\Persistence\QueryInterface | |
return | integer |
public getObjectDataByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : array | ||
$query | Neos\Flow\Persistence\QueryInterface | |
return | array |
public initialize ( ) : void | ||
return | void |
public injectBackend ( Neos\Flow\Persistence\Generic\Backend\BackendInterface $backend ) : void | ||
$backend | Neos\Flow\Persistence\Generic\Backend\BackendInterface | the backend to use for persistence |
return | void |
public injectDataMapper ( |
||
$dataMapper | ||
return | void |
public injectPersistenceSession ( |
||
$persistenceSession | The persistence session | |
return | void |
public injectQueryFactory ( Neos\Flow\Persistence\Generic\QueryFactoryInterface $queryFactory ) : void | ||
$queryFactory | Neos\Flow\Persistence\Generic\QueryFactoryInterface | |
return | void |
public isConnected ( ) : boolean | ||
return | boolean | TRUE, if an connection has been established, FALSE if add object will not be persisted by the backend |
public isNewObject ( object $object ) : boolean | ||
$object | object | The object to check |
return | boolean | TRUE if the object is new, FALSE if the object exists in the persistence session |
public persistAll ( boolean $onlyWhitelistedObjects = false ) : void | ||
$onlyWhitelistedObjects | boolean | |
return | void |
protected SplObjectStorage $addedObjects | ||
return | SplObjectStorage |
protected BackendInterface,Neos\Flow\Persistence\Generic\Backend $backend | ||
return | Neos\Flow\Persistence\Generic\Backend\BackendInterface |
protected SplObjectStorage $changedObjects | ||
return | SplObjectStorage |
protected DataMapper,Neos\Flow\Persistence\Generic $dataMapper | ||
return |
protected Session,Neos\Flow\Persistence\Generic $persistenceSession | ||
return |
protected QueryFactoryInterface,Neos\Flow\Persistence\Generic $queryFactory | ||
return | Neos\Flow\Persistence\Generic\QueryFactoryInterface |