DB_DataContainer
Details
| Size: | 9K |
| Last Update: | 2008-05-27 00:08:01 |
| Version: | 1.3.1 |
| OS Support: | Linux |
| License/Program Type: | BSD License |
| Publisher: | Mika Tuupola |
| Price: | $0.00 |
Description:
DB_DataContainer 1.3.1 is database apis software developed by Mika Tuupola.
DB_DataContainer is a PEAR compliant database persistence layer and data encapsulation class. A persistence layer can encapsulate the behaviour needed to make objects persistent like for exemple: to load, save and delete objects to and from persistent storage. Currently the only supported persistence mechanisms are relational databases. Database abstraction is provided by PEAR DB.
Data encapsulation is provided by overloaded accessor methods. This means that if you have a property named $foo and you do not write getFoo() and setFoo() methods in the extending class yourself, they will be automatically provided by DB_DataContainer.
As a result of the provided persistence mechanism and data encapsulation DB_DataContainer together with few lines of extra code can be used to implement the Active Record Pattern as described by Martin Fowler:
An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data.
The class does not use any external configuration files. The extending class itself IS the configuration. All you need to take care about is to have matching propertyname - columname pairs in the class and the database table.
If your database schema changes, for example you add an column foo to the table, all you need to do is to add a property name foo to your class which extends DB_DataContainer. There is no need to rewrite any internal SQL queries.
The class does not provide direct support for JOIN:s or table linking. For extreme cases it is still possible to pass hardcoded SQL queries. This usage is discouraged since it breaks the basic idea of using DB_DataContainer.
Here are some key features of "DB DataContainer":
Simple API
Persistence mechanism encapsulation. You only need to call load(), save() or delete(). Note that there are no separate methods for INSERT and UPDATE. save() figures itself out which query to use.
Overloaded accessor methods for class properties without such methods.
PEAR DB supported databases as persistence mechanisms (tested with Postgres, MySQL, MSSQL and SQLite).
Multi-object actions provided by a static getObjects() call.
Possibility to use hardcoded SQL queries in multi-object actions.
Regression tests.
Supports PHP4 and PHP5 (starting from version 1.3.0)
What's New in This Release:
This release fixes problems with protected and private data members when using PHP5.
DB_DataContainer 1.3.1 supports different languages (including english). It works with Linux.
Downloading DB_DataContainer 1.3.1 will take several seconds if you use fast ADSL connection.
0 comments
Add to
DB_DataContainer Version History
Related Software
|
|
From category: Administrative-frontents |
| MySQL Workbench is a cross-platform, visual database design tool developed by MySQL.... |
|
|
From category: Database-APIs |
| DBDesigner Preview 2 is database apis software developed by Mihnea Balta. DBDesigner is a program to create any visual design of MySQL databases. f you need to build complex SQL databases yo... |
|
|
From category: Administrative-frontents |
| ADOdb Lite 1.30 is administrative frontents software developed by Mark Dickenson. ADOdb Lite is a small, fast replacement for ADODB that uses 1/6th of the memory and is up to 300% faster, while bei... |
|
|
From category: Database-Engines |
| Emdros 1.2.0 pre231 is database engines software developed by Ulrik Petersen. Emdros is an Open-Source text database engine for storage and retrieval of analyzed or annotated text. Emdros ha... |
|
|
From category: Database-Servers |
| Professional Incredimail Recovery Software is advanced Email Recovery tool to recover deleted emails and addresses from incredimail. It can successfully recovers contacts from Incredimail .IMB Address... |
|
|
From category: Administrative-frontents |
| ERW 1.0.11 is administrative frontents software developed by Sebastiano Vigna. ERW is a set of specifications and tools that makes it easy to create, modify and maintain via web a database describe... |
|
|
From category: Database-APIs |
| Demunger is a script used to process the database dumps in order to turn them into plain UTF-8 again.... |
|
|
From category: Database-Engines |
| Berkeley DB 4.5.20 is database engines software developed by Oracle. Berkeley DB (libdb) is a programmatic toolkit that provides embedded database support for both traditional and client/server app... |
|
|
From category: Database-Engines |
| BerkeleyDB Backend Storage Engine for DURUS 20061121 is database engines software developed by jcea. BerkeleyDB Backend Storage Engine for DURUS project provides a storage engine for DURUS, a persi... |
|
|
From category: Database-Engines |
| Berkeley DB Java Edition 3.1.0 is database engines software developed by Oracle. Berkeley DB Java Edition is a high performance, transactional storage engine written entirely in Java. Like the high... |
|
|
From category: Administrative-frontents |
| DBAConnect 1.5 is administrative frontents software developed by Datasparc Inc.. DBAConnect provides convenient administration/development of Oracle database through any web browser. It\'s P... |
|
|
From category: Database-APIs |
| DB Solo 2.0.1 Final is database apis software developed by DB Solo Team. DB Solo program is a powerful yet affordable cross-platform database development and management tool for both developers and... |
|
|
From category: Administrative-frontents |
| AnyMeal 0.30 is administrative frontents software developed by Jan Wedekind. AnyMeal is a Linux recipe database software offering recipe management for a cookbook with more than 100,000 recipes, al... |
|
|
From category: Database-APIs |
| Aqua Data Studio 4.7.2 is database apis software developed by AquaFold, Inc..
Aqua Data Studio program is a database query tool and administration tool that allows developers to easily create, edit... |
|
|
From category: Database-Engines |
| OpenLink Virtuoso is a Virtual Database product that provides transparent real-time access to disparate data sources.... |
Leave a comment