PHP 클래스 Storm\Core\Object\UnitOfWork

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/penumbra 1 사용 예제들

공개 메소드들

메소드 설명
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