DB_DataContainer 1.3.1
Sponsored Links
DB_DataContainer 1.3.1 Ranking & Summary
File size:
0.009 MB
Platform:
Any Platform
License:
BSD License
Price:
Downloads:
1403
Date added:
2005-12-22
Publisher:
Mika Tuupola
DB_DataContainer 1.3.1 description
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.
Main features:
- 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)
Enhancements:
- This release fixes problems with protected and private data members when using PHP5.
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.
Main features:
- 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)
Enhancements:
- This release fixes problems with protected and private data members when using PHP5.
DB_DataContainer 1.3.1 Screenshot
DB_DataContainer 1.3.1 Keywords
DB
DataContainer
PEAR
DataContainer 1.3.1
SQL
database persistence layer
Persistence Layer
Data encapsulation
provided by
database persistence
compliant database
class
persistence
database
encapsulation
data
Bookmark DB_DataContainer 1.3.1
DB_DataContainer 1.3.1 Copyright
WareSeeker periodically updates pricing and software information of DB_DataContainer 1.3.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DB_DataContainer 1.3.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
internet movie database
what is a database
database software
what is database
java persistence layer
movie database
persistence layer wiki
what is persistence layer
persistence poster
classic industries
database programs
what is data encapsulation
persistence layer design
classified ads
salvador dali the persistence of memory
database development
persistence layer definition
data encapsulation osi
Related Software
DB Designer Fork is a fork of the fabFORCE DBDesigner 4. Free Download
Open Tranquera is a repository of reusable components for J2EE application development. Free Download
XML::DB::DatabaseManager is an approximation to the XML:DB DatabaseManager. Free Download
iBATIS provides flexible means of moving data between your Java and .NET objects and a relationaldatabase. Free Download
DB Copy Plugin is a database copying plugin for the SQuirreL SQL Client. Free Download
Haskell Database Connectivity project provides an abstraction layer between Haskell programs and SQL relational databases. Free Download
TCP Re-engineering Tool monitors and analyzes data transmitted between a client and a server via a TCP connection. Free Download
The cnet network simulator (v2.0.9) enables experimentation with various network protocols. Free Download
Latest Software
Popular Software
Favourite Software