JDBC provides mappings for all kinds of stuff to the SQL standard datatypes. I develop against JDBC and test against Oracle and DB2. I am worried about portability. How do I do this stuff generic?
Follow SQL92 standards. The vendors usually provide a list of non-standard SQL (eg "connect by" in oracle). Just do straight SQL insert, select, update, delete (CRUD) without getting too fancy and you should be fine. The key is to test you app on the various platforms, but to my knowledge DB2 and Oracle are pretty comparable in regards to the fundemental CRUD stuff.
I choose to differ...<br>
<br>
<br>
the reason is this...<br>
database like DB2 and Oracle have certain <br>
extra features that allows queries to run<br>
faster ...<br>
<br>
so u should look into design patterns<br>
that will dynamically load depending on<br>
environments...<br>
<br>
something like factory classes etc...<br>
<br>
its the design... festus..<br>
regardless of how technogy moves..<br>
the fundamentals is still the same...<br>
<br>
<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.