|
From: Frank V. C. <fr...@us...> - 2001-04-15 16:36:11
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv27968/clfw/Persist
Modified Files:
Makefile.am Persist.hpp SchemaCatalog.hpp Store.hpp
Added Files:
SchemaAbstractStore.hpp SchemaCatStore.hpp
Log Message:
115287 Schema persist incremental
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaAbstractStore.hpp'
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaCatStore.hpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 2001/04/12 11:56:53 1.4
--- Makefile.am 2001/04/15 16:36:08 1.5
***************
*** 14,22 ****
includedir = @includedir@/Persist
include_HEADERS = Persist.hpp \
! StoreSponsor.hpp \
! SchemaSponsor.hpp \
! StoreCatalog.hpp \
! SchemaCatalog.hpp \
! Store.hpp
--- 14,25 ----
includedir = @includedir@/Persist
include_HEADERS = Persist.hpp \
! StoreSponsor.hpp \
! StoreCatalog.hpp \
! Store.hpp \
! SchemaSponsor.hpp \
! SchemaCatalog.hpp \
! SchemaAbstractStore.hpp \
! SchemaCatStore.hpp
!
Index: Persist.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Persist.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Persist.hpp 2001/04/12 11:56:53 1.4
--- Persist.hpp 2001/04/15 16:36:08 1.5
***************
*** 33,40 ****
#define INCL_StoreSponsor <clfw/Persist/StoreSponsor.hpp>
- #define INCL_SchemaSponsor <clfw/Persist/SchemaSponsor.hpp>
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
- #define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
#define INCL_Store <clfw/Persist/Store.hpp>
/*
--- 33,48 ----
#define INCL_StoreSponsor <clfw/Persist/StoreSponsor.hpp>
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
#define INCL_Store <clfw/Persist/Store.hpp>
+
+ //
+ // Schema persistence
+ //
+
+ #define INCL_SchemaSponsor <clfw/Persist/SchemaSponsor.hpp>
+ #define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
+ #define INCL_SchemaAbstractStore <clfw/Persist/SchemaAbstractStore.hpp>
+ #define INCL_SchemaCatStore <clfw/Persist/SchemaCatStore.hpp>
+ #define INCL_SchemaStore <clfw/Persist/SchemaStore.hpp>
/*
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SchemaCatalog.hpp 2001/04/12 11:56:53 1.5
--- SchemaCatalog.hpp 2001/04/15 16:36:08 1.6
***************
*** 41,44 ****
--- 41,45 ----
namespace corelinux
{
+ DECLARE_CLASS( Store );
DECLARE_CLASS( Schema );
DECLARE_CLASS( SchemaCatalog );
***************
*** 155,158 ****
--- 156,163 ----
void resolveLocations( void );
+ /// Create the catalog store
+
+ void createCatalogStore( void );
+
/**
createSchema is the workhorse which goes through
***************
*** 199,216 ****
);
- /**
- General function to resolve attribute from
- collection
- @param Collection from user
- @param FrameworkString for key to search on
- @returns FrameworkString value that goes
- with key
- */
-
- FrameworkStringPtr resolveValueAssignment
- (
- CollectionPtr,
- FrameworkStringPtr
- ) const;
--- 204,207 ----
***************
*** 228,231 ****
--- 219,226 ----
SetCollection theSchemas;
+
+ /// The catalog store itself
+
+ StorePtr theCatalog;
};
}
Index: Store.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Store.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Store.hpp 2001/04/12 11:56:53 1.1
--- Store.hpp 2001/04/15 16:36:08 1.2
***************
*** 32,35 ****
--- 32,37 ----
namespace corelinux
{
+ DECLARE_CLASS( Collection );
+ DECLARE_CLASS( FrameworkString );
DECLARE_CLASS( Store );
***************
*** 76,83 ****
--- 78,164 ----
//
+ /**
+ General function to resolve attribute from
+ collection
+ @param Collection from user
+ @param FrameworkString for key to search on
+ @returns FrameworkString value that goes
+ with key
+ */
+
+ static FrameworkStringPtr resolveValueAssignment
+ (
+ CollectionPtr,
+ FrameworkStringCptr
+ ) ;
+
+ static FrameworkStringCref getNameKey( void );
+ static FrameworkStringCref getModeKey( void );
+ static FrameworkStringCref getLocationKey( void );
+ static FrameworkStringCref getUniqueIdKey( void );
+ static FrameworkStringCref getCollectionKey( void );
+
+ //
+ // Mutators
+ //
+
+ //
+ // Forced interface
+ //
+
+ /**
+ open the store, using the arguments
+ @param Collection of corelinux::Attributes,
+ with common key/value pairs as:
+ "Name" - Name of Store
+ "Location" - Specific location details
+ "Mode" - "Read | Write | ReadWrite"
+ "Schema" - corelinux::Schema model for store
+ "UserId" - Identifiers the user
+ "AliasId" - As alias
+ "Password" - for activity
+ */
+
+ virtual void open( CollectionPtr ) = 0;
+
+ /**
+ close the store
+ */
+
+ virtual void close( void ) = 0;
+
+ /**
+ Read one or more objects from a store
+ @param Collection pointer to identifications
+ @returns Collection of resolutions
+ */
+
+ virtual CollectionPtr read( CollectionPtr ) = 0;
+
+ /**
+ Returns a collection created by virtue of calling
+ a read operation
+ @param Collection pointer from Store::read
+ */
+
+ virtual void returnReadCollection( CollectionPtr ) = 0;
+
+
+ /**
+ Write one or more objects to a store
+ @param Collection pointer to identifications and objects
+ */
+
+ virtual void write( CollectionPtr ) = 0;
+
protected:
private:
+ static FrameworkString theNameKey;
+ static FrameworkString theModeKey;
+ static FrameworkString theLocationKey;
+ static FrameworkString theUniqueIdKey;
+ static FrameworkString theCollectionKey;
};
|