5/5/2023 0 Comments Java mysql jdbc driver jarThese implementation classes provide methods through which we can provide database server details with user credentials. For example MySQL JDBC Driver provides basic implementation of DataSource interface with 2.optional.MysqlDataSource class and Oracle database driver implements it with class. It is the responsibility of different Database vendors to provide different kinds of implementation of DataSource interface. Java DataSource interface is present in javax.sql package and it only declare two overloaded methods getConnection() and getConnection(String str1,String str2). JDBC DataSource is the preferred approach if you are looking for any of these features in your application. Most of the times we are looking for loose coupling for connectivity so that we can switch databases easily, connection pooling for transaction management and distributed systems support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |