| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
Marshall wrote:
> So every time you need to do any query, you just mechanically wrap it
> in a method? Then the use of these wrapper methods is okay anywhere
> in the application that needs to make them?
When those techniques relieve duplication.
Suppose 12 of my modules bulldoze the BULLDOZE table. Gee, maybe I should wrap that up in a Bulldoze object and hide all the SQL statements inside that.
Now suppose one little module reads the CONFIG table at startup. Screw it; just hard-code a SELECT statement and don't look back.
The goal is to replace duplicated statements with better design.
-- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!Received on Sun Jun 04 2006 - 21:19:24 CDT
![]() |
![]() |