[Bio] / CatalogServices / DataFactoryBase.py Repository:
ViewVC logotype

View of /CatalogServices/DataFactoryBase.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (download) (as text) (annotate)
Tue Jul 13 21:15:07 2004 UTC (15 years, 10 months ago) by efrank
Branch: MAIN
CVS Tags: V00-00-01, sc2004-4, sc2004-3, sc2004-2, sc2004-1, sc2004-0, forRick-14Jul04-1, forRick-14Jul04-0, before-dynamics-persistence, lwc, post-st-migration2, mass-spec-01, mass-spec-03, mass-spec-02, treatman-lastDay-0, preTreatmanDyn, post-st-migration, sc04-finalDay, HEAD
Changes since 1.5: +2 -23 lines
Schema:
	o change size of Function column from 64 to 128.
	  More reasonable size and avoids a crash.
	o RebuldDb...runs all the steps of rebuilding the database.
	o biuldNewBssCatalog:  go to new BssFactory ctor

CatalogServices:
	o remove setFoundryId from DataFactoryBase.  Now expect that info
	  to be in the DB itself and for ctor of derivative to set it.

FaST:
	o Migrate to new DbManager from DBconnect.  Includes moving to
	  new nextSeqVal().
	o Now get fid from database
PyGui:
	o Changed to follow mods above.
	o

#-----------------------------------------------------------------------------
# Name:        DataFactoryBase.py
# Defines:     DataBacrotyBase
#
# History:
#              09Feb04 efrank      First version
#
# Bugs:
#
# RCS-ID:      $Id: DataFactoryBase.py,v 1.6 2004/07/13 21:15:07 efrank Exp $
# Copyright:   (c) 2004
# Licence:     See COPYING.TXT
#-----------------------------------------------------------------------------
"""
"""
__revision__ = "$Id: DataFactoryBase.py,v 1.6 2004/07/13 21:15:07 efrank Exp $"
__docformat__ = "restructuredtext en"


#------------------------------------------------------------------
class DataFactoryBase:
#------------------------------------------------------------------
    """
    Base class for Data factories. Most methods are intended to be
    overridden in derived classes and just throw exceptions if called.
    """

    #------------------------------------------------------------------
    def __init__(self, aFoundryId):
    #------------------------------------------------------------------
        """
        """
        self.__myFoundryId = aFoundryId

        return

    #------------------------------------------------------------------
    def getFoundryName(self):
    #------------------------------------------------------------------
        """
        Pulls name from FoundryId and returns it
        """

        return self.__myFoundryId.getName()

    #------------------------------------------------------------------
    def getFoundryType(self):
    #------------------------------------------------------------------
        """
        Pulls name from FoundryId and returns it
        """

        return self.__myFoundryId.getType()

    #------------------------------------------------------------------
    def getFoundryId(self):
    #------------------------------------------------------------------
        """
        Returns my globally-unique foundryId
        """

        return self.__myFoundryId

    #------------------------------------------------------------------
    def getCatalogTop(self):
    #------------------------------------------------------------------
        """
        Returns CatalogEntry corresponding to top node in this factory.
        """
        raise Exception, "Not implmented."
        return

    #------------------------------------------------------------------
    def getCatalogEntryFromPath(self, pathString):
    #------------------------------------------------------------------
        """
        Given a string-format path, locate the corresponding catalog entry.
        Return None if not found.
        """
        raise Exception, "Not implmented."
        return


        return

                        

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3