How to achieve database independency when using jdbc [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want that when I am using jdbc and java to connect to a database it should connect to multiple database

Your question is too broad, but to answer your question to a certain extent, you can do that with multiple JDBC connections to different databases. Each of the database would require a specific connection string and database specific JDBC driver...
Hence, for you to connect to multiple databases using JDBC & Java - you would be able to do that loading the vendor specific drivers and create a connection per database that you would want to connect.

Related

Can I create queries in Arango DB using the Java interface? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Although I can create and store queries using the Arango client, I can't find a way to create and retrieve them using the Arango java driver. The only place I can see a QueryEntity returned is when asking for long running queries.
In the same way I create Collections and graphs programmatically using the java api, I also want to create a few queries for debugging. I can't find a way to do this using the java api.

About jndi database connection [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
What is the exact purpose of jndi.Why i need to depends on server for my database connection.I can get the same database connection in normal ojdbc itself.
please help me with that.
Thanks n advance
These are some pointers why i personally prefer JNDI over harcoded configurations in code.
Application can work with any database since it does not need to
bundle the driver.
Multiple applications running on server can use the same connection
pool which might be better use of resources.
This allows container to perform XA transactions in case other
databases are used.

is HikariCP be useful for MongoDB? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i am trying to use HikariCP for mongodb to get best for db connections.
but HikariCP doesn't have driver for mongodb.
Let me know is that true? is there any possible way to integrate HikariCP with mongodb?
HikariCP is a JDBC connection pool. You can't use it for NoSQL databases. It also doesn't have drivers for anything: it's a connection pool, so it uses JDBC drivers but you have to provide them.

Is there a database option that is local and does not require lots of overhead [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to create a local database for query purposes. I wish to build and populate a database with data from a number of text files, do the queries needed, and then destroy the database since it is no longer needed.
I am currently programing it in VB.net but would eventually want to port into a java or like language so other platforms can be used.
I prefer something that does not require the user to download something else to make this work. A person I asked did suggest SQLite but I am not sure how to load it internally.
Java SDK includes Derby Database - see the link.
That can be used without further download (only Java needs to be there of cause)

MySQL to MS-SQL server 2005 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a Web application , I have written MySQL code for connecting to database , But at my work place they have MS-SQL server , thus Do I have to change full code for database connection or any simple modifications can be done !! Kindly help me out , I am very much new to JAVA,
Thanks in Advance
Depends,
if you use standard SQL statements you should be able to just specify the new jdbc driver and login information and it should work.
But when you used features from MySQL not available in MS SQL then you will have to modify these parts in the source code.

Categories