how can we connect to db without using getConnection()
method
Answers were Sorted based on User's Feedback
Use Hibernate framework to connect to the database without
using getConnection method.
Hibernate Performing the usual DB operations
| Is This Answer Correct ? | 8 Yes | 5 No |
Answer / john
i suggest shine Enterprise farmework
use the jconnection package
it contains something like hibernate
and i removed the .xml files
enjoy it
http://sourceforge.net/projects/shine-enterpris/files/
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / naveen
it is not possible to get the connection from db server
without using getConnection();method, because
getConnection()method will take 3 paramaeters like
url,username,pwd......without this a javapgm will not
connect to db server. and getConnection method returns
connectionobject ..........
| Is This Answer Correct ? | 1 Yes | 1 No |
What is ojvm used for?
What are the common tasks of JDBC?
How do I start debugging problems related to the JDBC API?
What is jdbc and why is it required?
What is the use of jdbc api?
what is the best way, in terms of performance, to do multiple insert/update statements, a PreparedStatement or Batch Updates?
Give an example of code used for setting up connection with a driver.
How can we retrieve data from the resultset?
Is not bound in this context unable to find jdbc spring boot?
Can you define a foreign key, with a key from the same table?
Does multiple concurrent open statements per connection are supported by the JDBC-ODBC Bridge?
How to execute bulk number of queries at once?