On Mar 14, 10:01 am, Lew <l...@nospam.lewscanon.com> wrote:
> ck wrote:
> > In case you are planning to use Properties, you would need to put the
> > database queries and DML as well in the Properties file. In some
> > situations the DML and queries can be Database specific. Hence if they
> > are hard coded in the class you would need to do something about it.
>
> Need to? No. Want to? Maybe, but I doubt it.
>
> How many projects have you ever been on that changed DMBSes?
If that was the situation then this question would have not existed in
the first place.
> Why in the world would you use DBMS-specific constructs if you are ever
> planning to change DBMSes? Use vanilla SQL and put the tricky stuff in the
> Java code.
> [Clipped]
May be using properties file is a bad idea but what I wanted to convey
was that -
There are lot of DB specific features, which developer might use to
develop the application(initially), later when you have to migrate to
someother DB its a problem. For that matter Databases don't follow any
standard for DML or Queries, in my opinion Oracle is a leader at
breaking the standards set.
Ck
http://www.gfour.net