Home | Trees | Index | Help |
|
---|
Package Modeling :: Module SnapshotsHandling :: Class SnapshotsTable |
|
object
--+
|
SnapshotsTable
SnapshotsTable
,
SnapshotsTable
Method Summary | |
---|---|
Initializer. | |
Raises Unimplemented... | |
decrementSnapshotCountForGlobalID(self,
aGlobalID)
| |
Disables the snapshot refcounting. | |
Clears every snapshots currently referenced | |
Deletes all references to snapshots for 'aGlobalID' | |
Deletes all references to snapshots registered for the GlobalIDs in 'globalIDs' | |
Returns the list of all 'GlobalIDs' referenced in the snapshots | |
See also: decrementSnapshotCountForGlobalID() | |
Tells whether snapshot refCounting is enabled. | |
recordSnapshotForGlobalID(self,
snapshot,
aGlobalID)
| |
Sets the toMany snapshot for the supplied GlobalID. | |
recordSnapshots(self,
snapshots)
| |
Records the snapshots for a toMany relationship. | |
setTimestampToNow(self)
| |
decrementSnapshotCountForGlobalID() | |
snapshotForGlobalID(self,
aGlobalID,
timestamp)
| |
snapshotForSourceGlobalID(self,
aGlobalID,
aName,
timestamp)
| |
snapshots(self)
| |
timestampForGlobalID(self,
aGlobalID)
| |
timestampForSourceGlobalID(self,
aGlobalID,
aName)
| |
toManySnapshots(self)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self)
Initializer. Note that the timestamp is initialized to the value
'time.time()'. |
__unimplemented__(self)Raises Unimplemented... |
disableSnapshotRefCounting(self)Disables the snapshot refcounting. Note that once it has been disabled, the snapshot refcounting cannot be re-enabled. Please refer to documentation for 'isSnapshotRefCountingEnabled()' for a full discussion what subclasses may do. |
forgetAllSnapshots(self)Clears every snapshots currently referenced See also: forgetSnapshotForGlobalID(), forgetSnapshotForGlobalIDs() |
forgetSnapshotForGlobalID(self, aGlobalID)Deletes all references to snapshots for 'aGlobalID' See also: forgetSnapshotForGlobalID(), forgetAllSnapshots() |
forgetSnapshotForGlobalIDs(self, globalIDs)Deletes all references to snapshots registered for the GlobalIDs in 'globalIDs' Parameter: 'globalIDs' -- a sequence of 'GlobalID' Raises KeyError if one GlobalID in 'globalIDs' is not registered. See also: forgetSnapshotForGlobalID(), forgetAllSnapshots() |
globalIDs(self)Returns the list of all 'GlobalIDs' referenced in the snapshots |
incrementSnapshotCountForGlobalID(self, aGlobalID)See also: decrementSnapshotCountForGlobalID() |
isSnapshotRefCountingEnabled(self)Tells whether snapshot refCounting is enabled. Note that once it has been disabled, the snapshot refcounting cannot be re-enabled. If you need to bind this to some external functionality or trigger of your own, simply subclass 'SnapshotsTable' and override this method, and possibly disableSnapshotRefCounting() as well. An example of such an usage can be found in class 'Database' (cf. 'Database.SnapshotsTable').
|
recordSnapshotForSourceGlobalID(self, gids, aGlobalID, aName)Sets the toMany snapshot for the supplied GlobalID. Note that 'aGlobalID' should already be known to the SnapshotsTable, or ValueError is raised |
recordToManySnapshots(self, snapshots)Records the snapshots for a toMany relationship. Parameter:
|
snapshotCountForGlobalID(self, aGlobalID)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |