Re: Where do business rules belong... OCP and SPs
From: Vladimir Levin (vladimir_levin_at_yahoo.ca)
Date: 01/19/04
- Next message: Kevin Cline: "Re: Using iterators and efficiency."
- Previous message: Sridaran R.: "Journal"
- In reply to: Yaron Bental: "Where do business rules belong... OCP and SPs"
- Next in thread: Alfredo Novoa: "Re: Where do business rules belong... OCP and SPs"
- Reply: Alfredo Novoa: "Re: Where do business rules belong... OCP and SPs"
- Reply: Yaron Bental: "Re: Where do business rules belong... OCP and SPs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Jan 2004 09:21:52 -0800
bentalcy@yahoo.com (Yaron Bental) wrote in message news:<93d90bd.0401182038.5d831d17@posting.google.com>...
> Hi
>
> Being an OO follower I believe, and I know a few other do too,
Maybe I am being too simplistic, but I really don't see what the
problem with using a stored procedure is. If it's an effective way
to get the results you want, then go ahead and use it. I would
suggest that your actual code should not access this stored
procedure directly; instead define an interface that delegates
its implementation to the procedure and make sure to access
that proc only through that interface. Say, in Java:
//customer domain object
public class Customer {
public ComplicatedData getSomeComplicatedDataForCustomer() {
//call stoerd proc to get complicated data
}
}
For Java, I have worked on a team where we used dbunit with great results
to automate testing of this kind of functionality. In my opinion, one
should look for the most reasonable solution to a problem, not go out
of one's way to dogmatically follow what one thinks is the One True Path
out of a sense of religious fervor.
Vlad
- Next message: Kevin Cline: "Re: Using iterators and efficiency."
- Previous message: Sridaran R.: "Journal"
- In reply to: Yaron Bental: "Where do business rules belong... OCP and SPs"
- Next in thread: Alfredo Novoa: "Re: Where do business rules belong... OCP and SPs"
- Reply: Alfredo Novoa: "Re: Where do business rules belong... OCP and SPs"
- Reply: Yaron Bental: "Re: Where do business rules belong... OCP and SPs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|