There are some limitations of using JDBC and database dependency is one of those limitations.
Is there any pattern or way to achieve database independence in JDBC (without using any other ORM framework or tool).
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).
For example, is there a way to write generic SQL statements so that they can be executed in almost every SQL related DBMS?