PHP Class Storm\Core\Object\UnitOfWork

Author: Elliot Levin ([email protected])
Datei anzeigen Open project: timetoogo/penumbra Class Usage Examples

Public Methods

Method Description
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 )

Private Methods

Method Description
TypeMismatch ( $ObjectName, $EntityType )

Method Details

Discard() public method

Discards the supplied entity
public Discard ( object $Entity ) : void
$Entity object The entity to discard
return void

DiscardWhere() public method

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() public method

Add a procedure to be executed.
public Execute ( Storm\Core\Object\IProcedure $Procedure ) : void
$Procedure Storm\Core\Object\IProcedure The procedure to execute
return void

GetDiscardedCriteria() public method

public GetDiscardedCriteria ( ) : Storm\Core\Object\ICriterion[]
return Storm\Core\Object\ICriterion[]

GetDiscardenceData() public method

public GetDiscardenceData ( ) : PersistenceData[]
return PersistenceData[]

GetDiscardenceDataGroups() public method

public GetDiscardenceDataGroups ( ) : PersistenceData[][]
return PersistenceData[][]

GetDomain() public method

public GetDomain ( ) : Domain
return Domain

GetExecutedProcedures() public method

public GetExecutedProcedures ( ) : Storm\Core\Object\IProcedure[]
return Storm\Core\Object\IProcedure[]

GetPersistenceData() public method

public GetPersistenceData ( ) : PersistenceData[]
return PersistenceData[]

GetPersistenceDataGroups() public method

public GetPersistenceDataGroups ( ) : PersistenceData[][]
return PersistenceData[][]

Persist() public method

Persist an entities data and relationships to the unit of work.
public Persist ( object $Entity ) : void
$Entity object The entity to persist
return void

PersistRelationships() public method

Persist an entity's relationships to the unit of work.
public PersistRelationships ( object $Entity ) : void
$Entity object The entity to persist
return void

SupplyIdentity() public method

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 method

public __construct ( Domain $Domain )
$Domain Domain