| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: the relational model of data objects *and* program objects
erk wrote:
> mountain man wrote:
>> Central constraint enforcement should be in the database >> and not in the traditional program objects, this is a "given".
>> Assume this practice is adhered to, what other relationships >> exist between the relational model of the data and those >> program objects which routinely manipulate this data?
What would this look like?
My kneejerk reaction is to say "no" to this argument because of the bletcherous implementations I've seen. The bad ones try to reproduce the db layer in upper layers, sometimes down to constraints, keys, etc. This should light the red lights because the db layer was built already and should not be built again. Two examples:
So what does a relation look like when it respects the nature of a programming layer? The more we look at it here, the skinnier it gets. At the web layer it is an turnpike, taking POSTs and turning them into database INSERT/UPDATE/DELETE, then performing a SELECT and turning it into HTML. There is no implementation of "business rules" at all, unless you count some simple type-checking to avoid unnecessary trips to db server. Certainly no automation at that layer.
Am very interested in any other opinions.
-- Kenneth Downs Secure Data Software, Inc. (Ken)nneth@(Sec)ure(Dat)a(.com)Received on Sat Apr 16 2005 - 08:40:37 CDT
![]() |
![]() |