App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.ext.db.metadata.EntityGroup Class Reference
Inheritance diagram for google.appengine.ext.db.metadata.EntityGroup:
google.appengine.ext.db.metadata.BaseMetadata google.appengine.ext.db.Model

Public Member Functions

def key_for_entity
 
- Public Member Functions inherited from google.appengine.ext.db.Model
def __new__
 
def __init__
 
def key
 
def put
 
def delete
 
def is_saved
 
def has_key
 
def dynamic_properties
 
def instance_properties
 
def parent
 
def parent_key
 
def to_xml
 
def get
 
def get_by_key_name
 
def get_by_id
 
def get_or_insert
 
def all
 
def gql
 
def from_entity
 
def kind
 
def entity_type
 
def properties
 
def fields
 

Static Public Attributes

string KIND_NAME = '__entity_group__'
 
int ID = 1
 
tuple version = db.IntegerProperty(name='__version__')
 
- Static Public Attributes inherited from google.appengine.ext.db.Model
 save = put
 

Detailed Description

Model for __entity_group__ metadata (available in HR datastore only).

This metadata contains a numeric __version__ property that is guaranteed
to increase on every change to the entity group. The version may increase
even in the absence of user-visible changes to the entity group. The
__entity_group__ entity may not exist None if the entity group was never
written to.

Member Function Documentation

def google.appengine.ext.db.metadata.EntityGroup.key_for_entity (   cls,
  entity_or_key 
)
Return the metadata key for the entity group containing entity_or_key.

Use this key to get() the __entity_group__ metadata entity for the
entity group containing entity_or_key.

Args:
  entity_or_key: a key or entity whose __entity_group__ key you want.

Returns:
  The __entity_group__ key for the entity group containing entity_or_key.

The documentation for this class was generated from the following file: