java - Is it possible to use JDBC as an abstraction layer for RDBMS? -


jdbc provides api, may used connect different rdbms or similar datastores. datastores differ in implementation (e.g. sql dialects).

is possible use jdbc in such way, queries , statements work on common rdbms (e.g.: oracle, postgresql, sql server, mysql)?

that question interesting me @ 2 aspects: * common sql (insert, update, select etc.) * accessing meta data (getting information tables , columns)

i experimenting self written persistence framework , want plug jdbc datastore under it. if write jdbc datastore adapter, nice, if work on common rdbms.

thanks in advance

no not possible because serve 2 different purposes.

jdbc abstraction of dbms communication protocol, whereas sql query language.

the queries written in sql sent server using communcation protocol , results of queries returned through protocol (in dbms independent way).

there seems blurry line between communication protocol , queries jdbc api specifies calls retrieve meta data server (or result). driver free use means of transportation deems suitable. not need sql query.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -