BackendInterface deprecated
interface BackendInterface (View source)
deprecated
A persistence backend interface
Methods
Set a PersistenceManager instance.
Initializes the backend
Commits the current persistence session
Returns the object data for the given identifier.
Returns true, if an active connection to the persistence backend has been established, e.g. entities can be persisted.
Details
void
setPersistenceManager(PersistenceManagerInterface $persistenceManager)
Set a PersistenceManager instance.
void
initialize(array $options)
Initializes the backend
void
setAggregateRootObjects(SplObjectStorage $objects)
Sets the aggregate root objects
void
setDeletedEntities(SplObjectStorage $entities)
Sets the deleted entities
void
setChangedEntities(SplObjectStorage $entities)
Sets the changed objects
void
commit()
Commits the current persistence session
int
getObjectCountByQuery(QueryInterface $query)
Returns the number of items matching the query.
array
getObjectDataByQuery(QueryInterface $query)
Returns the object data matching the $query.
array
getObjectDataByIdentifier(string $identifier, string $objectType = null)
Returns the object data for the given identifier.
bool
isConnected()
Returns true, if an active connection to the persistence backend has been established, e.g. entities can be persisted.