# -*- coding: iso-8859-1 -*-
#-----------------------------------------------------------------------------
# Modeling Framework: an Object-Relational Bridge for python
#
# Copyright (c) 2001-2004 Sbastien Bigaret <sbigaret@users.sourceforge.net>
# All rights reserved.
#
# This file is part of the Modeling Framework.
#
# This code is distributed under a "3-clause BSD"-style license;
# see the LICENSE file for details.
#-----------------------------------------------------------------------------
"""
CooperatingObjectStore
See interfaces.CooperatingObjectStore for details
CVS information
$Id: CooperatingObjectStore.py 932 2004-07-20 06:21:57Z sbigaret $
"""
__version__='$Revision: 932 $'[11:-2]
from Modeling.interfaces.CooperatingObjectStoreInterface import
import CooperatingObjectStoreInterface
from Modeling.ObjectStore import ObjectStore
class CooperatingObjectStore(ObjectStore):
"""
See 'Modeling.interfaces.CooperatingObjectStoreInterface' for details
"""
__implements__ = (CooperatingObjectStoreInterface,)
__raise_exception__='AbstractMethod'
__raise_msg__="CooperatingObjectStore is an abstract class ; concrete "\
"subclasses should override this method"
def commitChanges(self):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def coordinator(self):
"""
Returns the current ObjectStoreCoordinator which which the DatabaseContext
cooperates during the process of saving changes. The coordinator is set
when prepareForSaveWithCoordinator() is called, and it is reset whenever
the process aborts --either with commitChanges() or rollbackChanges().
Outside a process of save changes, this returns None.
See also: prepareForSaveWithCoordinator(), commitChanges(),
rollbackChanges()
"""
def handlesFetchSpecification(self, aFetchSpecification):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def ownsGlobalID(self, aGlobalID):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def ownsObject(self, anObject):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def performChanges(self):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def prepareForSaveWithCoordinator(self, aCoordinator, anEditingContext):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def recordChangesInEditingContext(self):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def recordUpdateForObject(self, anObject, aDictionaryOfChanges):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def rollbackChanges(self):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
def valuesForKey(self, keys, anObject):
"See interfaces.CooperatingObjectStore for details"
raise __raise_exception__, __raise_msg__
|