PHP Класс Storm\Core\Object\UnitOfWork

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Discard ( object $Entity ) : void Discards the supplied entity
DiscardWhere ( Storm\Core\Object\ICriterion $Criterion ) Discard all entities matching the supplied criterion.
Execute ( Storm\Core\Object\IProcedure $Procedure ) : void Add a procedure to be executed.
GetDiscardedCriteria ( ) : Storm\Core\Object\ICriterion[]
GetDiscardenceData ( ) : PersistenceData[]
GetDiscardenceDataGroups ( ) : PersistenceData[][]
GetDomain ( ) : Domain
GetExecutedProcedures ( ) : Storm\Core\Object\IProcedure[]
GetPersistenceData ( ) : PersistenceData[]
GetPersistenceDataGroups ( ) : PersistenceData[][]
Persist ( object $Entity ) : void Persist an entities data and relationships to the unit of work.
PersistRelationships ( object $Entity ) : void Persist an entity's relationships to the unit of work.
SupplyIdentity ( PersistenceData $PersistenceData, Identity $Identity ) Sets a generated identity to to the entity mapped with the supplied persistence data.
__construct ( Domain $Domain )

Приватные методы

Метод Описание
TypeMismatch ( $ObjectName, $EntityType )

Описание методов

Discard() публичный Метод

Discards the supplied entity
public Discard ( object $Entity ) : void
$Entity object The entity to discard
Результат void

DiscardWhere() публичный Метод

Discard all entities matching the supplied criterion.
public DiscardWhere ( Storm\Core\Object\ICriterion $Criterion )
$Criterion Storm\Core\Object\ICriterion The criterion to discard by

Execute() публичный Метод

Add a procedure to be executed.
public Execute ( Storm\Core\Object\IProcedure $Procedure ) : void
$Procedure Storm\Core\Object\IProcedure The procedure to execute
Результат void

GetDiscardedCriteria() публичный Метод

public GetDiscardedCriteria ( ) : Storm\Core\Object\ICriterion[]
Результат Storm\Core\Object\ICriterion[]

GetDiscardenceData() публичный Метод

public GetDiscardenceData ( ) : PersistenceData[]
Результат PersistenceData[]

GetDiscardenceDataGroups() публичный Метод

public GetDiscardenceDataGroups ( ) : PersistenceData[][]
Результат PersistenceData[][]

GetDomain() публичный Метод

public GetDomain ( ) : Domain
Результат Domain

GetExecutedProcedures() публичный Метод

public GetExecutedProcedures ( ) : Storm\Core\Object\IProcedure[]
Результат Storm\Core\Object\IProcedure[]

GetPersistenceData() публичный Метод

public GetPersistenceData ( ) : PersistenceData[]
Результат PersistenceData[]

GetPersistenceDataGroups() публичный Метод

public GetPersistenceDataGroups ( ) : PersistenceData[][]
Результат PersistenceData[][]

Persist() публичный Метод

Persist an entities data and relationships to the unit of work.
public Persist ( object $Entity ) : void
$Entity object The entity to persist
Результат void

PersistRelationships() публичный Метод

Persist an entity's relationships to the unit of work.
public PersistRelationships ( object $Entity ) : void
$Entity object The entity to persist
Результат void

SupplyIdentity() публичный Метод

Sets a generated identity to to the entity mapped with the supplied persistence data.
public SupplyIdentity ( PersistenceData $PersistenceData, Identity $Identity )
$PersistenceData PersistenceData The persistence data of the entity
$Identity Identity The identity to supply the entity

__construct() публичный Метод

public __construct ( Domain $Domain )
$Domain Domain