Свойство | Тип | Описание | |
---|---|---|---|
$DomainDatabaseMap | The DomainDatabaseMap to query. | ||
$EntityMap | Storm\Core\Object\IEntityMap | The EntityMap for this repository. | |
$EntityType | string | The type of entity represented by this repository. | |
$FunctionToASTConverter | |||
$IdentityProperties | The properties representing the identity of the entity. |
Метод | Описание | |
---|---|---|
ClearChanges ( ) : void | Clears all the pending changes awaiting to be commited to underlying DomainDatabaseMap. | |
Criterion ( ) : |
Quick access to a new CriterionBuilder instance. | |
Discard ( object | |
Adds an entity or criterion to the discardence queue. | |
DiscardAll ( array $Entities ) : void | Adds an array of entities to the discardence queue. | |
Execute ( |
Adds a procedure to the execution queue directly from the builder. | |
ExecuteProcedure ( Storm\Core\Object\IProcedure $Procedure ) : void | Adds a procedure to the execution queue. | |
GetChanges ( ) : array | Gets the pending changes. | |
GetIdentityMap ( ) : |
Gets the identity map used for this repository. | |
Load ( |
Load a request directly from the builder instance. | |
LoadById ( $_ ) : object | null | Loads an entity from given identity values or null if entity does not exist. | |
LoadRequest ( Storm\Core\Object\IRequest $Request ) : object | null | array | Load entities specified by a request instance. | |
Persist ( object $Entity ) : void | Adds an entity to the persistence queue. | |
PersistAll ( array $Entities ) : void | Adds an array of entities to the persistence queue. | |
Procedure ( callable $ProcedureClosure ) : |
Quick access to a new ProcedureBuilder instance. | |
Request ( ) : |
Quick access to a new RequestBuilder instance. | |
SaveChanges ( ) : void | Commits all specified changes to the underlying DomainDatabaseMap. | |
SetAutoSave ( boolean $AutoSave ) : void | Set whether or not to automatically commit every change. | |
__construct ( |
Метод | Описание | |
---|---|---|
LoadByIdentity ( |
Loads an entity from an identity instance. | |
VerifyEntity ( string $Method, object $Entity ) | Verifies an entity to be valid for use in this repository. |
Метод | Описание | |
---|---|---|
AutoSave ( ) : void | Commits changes if AutoSave is enabled. |
final public ClearChanges ( ) : void | ||
Результат | void |
final public Criterion ( ) : |
||
Результат |
public DiscardAll ( array $Entities ) : void | ||
$Entities | array | The entities to discard |
Результат | void |
public ExecuteProcedure ( Storm\Core\Object\IProcedure $Procedure ) : void | ||
$Procedure | Storm\Core\Object\IProcedure | |
Результат | void |
final public GetChanges ( ) : array | ||
Результат | array | An array containing all the operations queues |
public GetIdentityMap ( ) : |
||
Результат |
protected LoadByIdentity ( |
||
$Identity | The identity of the entity | |
Результат | object | null |
public PersistAll ( array $Entities ) : void | ||
$Entities | array | The entities to persist |
Результат | void |
final public Request ( ) : |
||
Результат |
public SaveChanges ( ) : void | ||
Результат | void |
final public SetAutoSave ( boolean $AutoSave ) : void | ||
$AutoSave | boolean | |
Результат | void |
final protected VerifyEntity ( string $Method, object $Entity ) | ||
$Method | string | __METHOD__ |
$Entity | object | The entity to verify |
public __construct ( |
||
$DomainDatabaseMap | ||
$FunctionToASTConverter |
protected DomainDatabaseMap,Storm\Core\Mapping $DomainDatabaseMap | ||
Результат |
protected IEntityMap,Storm\Core\Object $EntityMap | ||
Результат | Storm\Core\Object\IEntityMap |
protected string $EntityType | ||
Результат | string |
protected FunctionToASTConverter,Storm\Api\Base $FunctionToASTConverter | ||
Результат |