title: Database independence through JDBC in java
body: <p>There are some limitations of using JDBC and database dependency is one of those limitations.</p>
  
  <p>Is there any pattern or way to achieve database independence in JDBC (without using any other ORM framework or tool).</p>
  
  <p>I have tried to achieve this through dynamic polymorphism (created specific classes for different DBMS and overridden common CRUD operations according to specific SQL syntax).</p>
  
  <p>For example, is there a way to write generic SQL statements so that they can be executed in almost every SQL related DBMS?</p>