Aprial 9th Monday (四月 九日 月曜日)
2007-04-10 11:41
471 查看
Today I created a abstract layer for accessing a database in PHP. This class includes such operator
as "connect", "disconnect", "executeQuery", and so forth. My purpose is to provide a uniform interface
of accessing database. So, I created two sub classes of that class. One is to access MySQL database.
Another is to access PostgreSQL database.
To seek a property sub classes I created a special class to adapt a sub class in according to a argument.
That is a factory class, in acutal fact, it is a adaptation.
as "connect", "disconnect", "executeQuery", and so forth. My purpose is to provide a uniform interface
of accessing database. So, I created two sub classes of that class. One is to access MySQL database.
Another is to access PostgreSQL database.
To seek a property sub classes I created a special class to adapt a sub class in according to a argument.
That is a factory class, in acutal fact, it is a adaptation.
相关文章推荐
- July 9th Monday (七月 九日 月曜日)
- 2009 March 9th Monday (三月 九日 月曜日)
- February 9th Monday 2009 (二月 九日 月曜日)
- Aprial 23th Monday (四月 二十三日 月曜日)
- Aprial 30th Monday (四月 三十日 月曜日)
- Aprial 16th Monday (四月 十六日 月曜日)
- April 9th Thursday (四月 九日 木曜日)
- 2008 April 9th Wednesday (四月 九日 水曜日)
- April 13th Monday (四月 十三日 月曜日)
- 2008 April 14th Monday (四月 十四日 月曜日)
- 2008 April 28th Monday (四月 二十八日 月曜日)
- April 20th Monday (四月 二十日 月曜日)
- April 27th Monday (四月 二十七日 月曜日)
- April 2nd Monday (四月 二日 月曜日)
- 2008 April 7th Monday (四月 七日 月曜日)
- March 5th Monday (三月 五日 月曜日)
- Aprial 17th Tuesday (四月 十七日 火曜日)
- Aprial 26th Thursday (四月 二十六日 木曜日)
- May 9th Wednesday (五月 九日 水曜日)
- August 20th Monday (八月 二十日 月曜日)