Google Code offered in: English - Español - 日本語 - 한국어 - Português - Pусский - 中文(简体) - 中文(繁體)
The model classes
Namespace
,
Kind
,
and
Property
define the special entity kinds returned as the results of metadata queries. These classes are all defined in the package google.appengine.ext.db.metadata
. See the
page
Metadata Queries
for more information and examples of their use.
Namespace
Kind
Property
The following helper functions are available for obtaining metadata information without issuing an explicit query:
Returns a list of namespace names.
Arguments
If not None
, return only namespace names greater than or equal to the specified value.
If not None
, return only namespace names less than the specified value.
Returns a list of entity kind names.
Arguments
If not None
, return only kind names greater than or equal to the specified value.
If not None
, return only kind names less than the specified value.
Returns a list of indexed property names for a specified kind. Unindexed properties are not included.
Arguments
The kind whose property names are requested.
If not None
, return only property names greater than or equal to the specified value.
If not None
, return only property names less than the specified value.
Returns a dictionary mapping each indexed property name for a specified kind to a list of its representations. Unindexed properties are not included.
Arguments
The kind whose property representations are requested.
If not None
, return only representations for properties whose names are greater than or equal to the specified value.
If not None
, return only representations for properties whose names are less than the specified value.
Class Namespace
represents a metadata entity of the special kind __namespace__
, returned as a result of a
namespace query.
The entity's key is the name of the namespace. (An exception is the default namespace designated by the empty string ""
: since this is not a valid key name, the default namespace is represented by a key with numeric ID 1
instead.)
Instances of class Namespace
have the following property:
Returns the name of the namespace specified by this entity's key.
Class Namespace
has the following class methods:
Returns the __namespace__
key for the specified namespace.
Argument
The namespace whose key is requested.
Returns the namespace specified by a given __namespace__
key.
Argument
The key whose name is requested.
Class Kind
represents a metadata entity of the special kind __kind__
, returned as a result of a
kind query.
The entity's key is the name of the entity kind.
Instances of class Kind
have the following property:
Returns the kind name specified by this entity's key.
Class Kind
has the following class methods:
Returns the __kind__
key for the specified kind.
Argument
The kind whose key is requested.
Returns the kind specified by a given __kind__
key.
Argument
The key whose kind is requested.
Class Property
represents a metadata entity of the special kind __property__
, returned as a result of a
property query.
The entity representing property P of kind K is built as follows:
__property__
and key name P.__kind__
and key name K.Instances of class Property
have the following properties:
Returns the property name specified by this entity's key.
Returns the property name specified by this entity's key.
Class Property
has the following class methods:
Returns the parent key for __property__
keys of the specified kind.
Argument
The kind whose parent key is requested.
Returns the __property__
key for the specified property and kind.
Arguments
The kind whose key is requested.
The property whose key is requested.
Returns the kind specified by a given __property__
key.
Argument
The key whose kind name is requested.
Returns the property specified by a given __property__
key, or None
if the key specified only a kind.
Argument
The key whose property name is requested.