Class GlobalIDInterface
Base
--+
|
GlobalIDInterface
- Known Subclasses:
-
IKeyGlobalID
,
ITemporaryGlobalID
GlobalID
A GlobalID uniquely identifies an object. It is used within EditingContexts
so that objects are kept unique.
More precisely, a object fetched from a database (either ZODB or --later--
any other DB) will be referenced by the same GlobalID in every
EditingContexts it is referenced into, wherever these EditingContexts were
instanciated, i.e. they could be within the same application/process or even
distributed over the network (with multiple application instances, for
load-balancing e.g.).
On the other hand, a newly created object which has not been stored yet will
receive a TemporaryGlobalID. This temporary global ID will be turned into
a solid GlobalID as soon as it is made persistent.
Implemented by: KeyGlobalID, TemporaryGlobalID
Method Summary |
|
__init__ (self,
entityName,
informations)
(called by 'globalIDWithEntityName()') |
|
__str__ (self)
Returns a string representation of the GlobalID. |
|
isTemporary (self)
Returns 'true' if the receiver is a TemporaryGlobalID, 'false' otherwise |
__init__(self,
entityName,
informations)
(Constructor)
(called by 'globalIDWithEntityName()') -
|
__str__(self)
(Informal representation operator)
Returns a string representation of the GlobalID. This string representation
has the same properties as a GlobalID in terms of uniquing. -
|
isTemporary(self)
Returns 'true' if the receiver is a TemporaryGlobalID, 'false' otherwise -
|