Method |
Description |
|
__construct ( Schema | string | null $kind_schema = null, Gateway $obj_gateway = null ) |
Gateway and Schema/Kind can be supplied on construction |
|
beginTransaction ( boolean $bol_cross_group = FALSE ) |
Begin a transaction |
|
createEntity ( array | null $arr_data = null ) : Entity |
Create a new instance of this GDS Entity class |
|
delete ( $entities ) : boolean |
Delete one or more Model objects from the Datastore |
|
fetchAll ( $str_query = null, array | null $arr_params = null ) : Entity[] |
Fetch Entities (optionally based on a GQL query) |
|
fetchById ( $str_id ) : Entity | null |
Fetch a single Entity from the Datastore, by it's Key ID |
|
fetchByIds ( array $arr_ids ) : Entity[] |
Fetch multiple entities by Key ID |
|
fetchByName ( $str_name ) : Entity | null |
Fetch a single Entity from the Datastore, by it's Key Name |
|
fetchByNames ( array $arr_names ) : Entity | null |
Fetch one or more Entities from the Datastore, by their Key Name |
|
fetchEntityGroup ( Entity $obj_entity ) : Entity[] |
Fetch all of the entities in a particular group |
|
fetchOne ( $str_query = null, array | null $arr_params = null ) : Entity |
Fetch ONE Entity based on a GQL query |
|
fetchPage ( $int_page_size, null $mix_offset = null ) : Entity[] |
Fetch (a page of) Entities (optionally based on a GQL query) |
|
getCursor ( ) : null | string |
Get the last result cursor |
|
query ( $str_query, array | null $arr_params = null ) |
Fetch Entities based on a GQL query |
|
setCursor ( $str_cursor ) |
Set the query cursor |
|
setEntityClass ( $str_class ) |
Set the class to use when instantiating new Entity objects |
|
upsert ( $entities ) |
Write one or more new/changed Entity objects to the Datastore |
|