PHP Class Storm\Core\Object\UnitOfWork

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/penumbra Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
TypeMismatch ( $ObjectName, $EntityType )

Method Details

Discard() public méthode

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

DiscardWhere() public méthode

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 méthode

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

GetDiscardedCriteria() public méthode

public GetDiscardedCriteria ( ) : Storm\Core\Object\ICriterion[]
Résultat Storm\Core\Object\ICriterion[]

GetDiscardenceData() public méthode

public GetDiscardenceData ( ) : PersistenceData[]
Résultat PersistenceData[]

GetDiscardenceDataGroups() public méthode

public GetDiscardenceDataGroups ( ) : PersistenceData[][]
Résultat PersistenceData[][]

GetDomain() public méthode

public GetDomain ( ) : Domain
Résultat Domain

GetExecutedProcedures() public méthode

public GetExecutedProcedures ( ) : Storm\Core\Object\IProcedure[]
Résultat Storm\Core\Object\IProcedure[]

GetPersistenceData() public méthode

public GetPersistenceData ( ) : PersistenceData[]
Résultat PersistenceData[]

GetPersistenceDataGroups() public méthode

public GetPersistenceDataGroups ( ) : PersistenceData[][]
Résultat PersistenceData[][]

Persist() public méthode

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

PersistRelationships() public méthode

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

SupplyIdentity() public méthode

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 méthode

public __construct ( Domain $Domain )
$Domain Domain