![]() |
![]() |
Links | Downloads | Tutorials | Projects | Services | ConnectTel | Resume |
|
SSF -Simple Storable FrameworkThe main goal of this project is to bring to the development community a simple, and at the time powerful, framework to map C++/java classes to tables in a RDBMS.Along with the goal above, we are aiming for simplicity, i.e., the framework must be simple, easy to learn and small to atrack its use on embedded systems. NOTE: Not quite yet. I *thought* sourceforge was going to be an easy thing. But, it turned out to be a very complex issue, and after a couple of weeks, I sill not have access to their secure shell and CVS access. All lists that I have created, still not ready. I think it is time to start looking at e-Groups. :-)
Environment and Drivers AvailableAs of the initial release, the framework has been tested under Windows NT 4.0 SP6. It should run fine under any version of Windows.
The C++ code has been tested with Borland C++ 5.5 or higher.
It is a free compiler for Win32 from Borland.
DB drivers available:
ArchitectureThe architecture of SSF is composed of two main sub-components:
Database DriverThis component is the basic interface to talk to the database engine. It has been desgined to resembles the JDBC classes a little bit. Not much. :-)
Two classes compose the driver:
Storable ClassesThis component provides the OO class framework that you use to customize your own classes from a C++ or java standpoint. It has a basic class called Storable, which has a set of pure virtual functions that must be provided by the specialized classes. A template based factory is provided to allow the creation of Storable instances matching a query executed against the DB engine. The factory is used to create a set of instances from a single query.
How to Customize your ClassesThis section describes in a nutshell what is required for you to write classes that maps to tables in a relational database. Let's use as an example a simple table called "Product" that has a schema as shown below:
create table Product ( ID INTEGER DEFAULT 0 AUTO_INCREMENT PRIMARY KEY, NAME VARCHAR( 80 ) NOT NULL, PRICE FLOAT DEFAULT 0, QTY INTEGER ); Where: ID: Primary Key ( PK ) as the ID of the product NAME: Description of the product PRICE: Price of the product QTY: Quantity available on the inventory Steps to write the Product class:
NOTE: The distribution has source code in C++/java mapping the Product table.
Downloadssf-20010121.zipArchive with source code and examples of the SSF framework.
LicenseThis framework is licensed under the GPL.Visitors:![]() Last modified Jan 14, 2001 Copyright ©1999-2001 Rosimildo da Silva. All rights reserved. |
e-mail me |
---|