Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

JDBC - Generate native sql strings

Thread view: 
oh_maan - 19 Jun 2007 07:53 GMT
Hi,

I am working on an adapter which would have to connect to multiple
databases using JDBC(not more than one at the same time). This adapter
would have to take the SQL to be executed in the form of, say, fields
to be retrieved, join condition, table name etc. I am not sure if all
the constraints specified by the user can be adequately represented in
ANSI SQL so as to make it DB independent. Would it be possible  to
pass the query in some standard form (XML or anything else) and get
back the native SQL string to be executed using JDBC? Are you guys
aware of any third party libraries that would achieve this task?

I tinkered with the idea of using Hibernate to achieve this. But I was
unable to find any concrete material that supports the use of
hibernate in this fashion. The tricky bit is the fact that the DB type
and the SQL string are both available only at runtime and thus
generating of the hibernate mapping as well as the associated classes
would also have to be at runtime.

Any help would be greatly appreciated...

Thanks
Sreeram
steve - 26 Jun 2007 14:55 GMT
> Hi,
>
[quoted text clipped - 19 lines]
> Thanks
> Sreeram

do a google search on " dbvisuliser" this will give you a very clear idea of
what is possible via java and sql

steve


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.