View RSS Feed

Java Database

  1. Establishing a Connection

    by , 03-10-2012 at 08:44 AM
    The very 1st step to use data source is to make connection with data source. Data source could be:
    • Legacy file system
    • DBMS
    • Few other data sources, with a corresponding JDBC driver

    For connecting an application to data source, these 2 classes are used.

    • DriverManager: Complete implementation is provided by this class so that to make a connection b/w application and a data source, that is specified by URL of database. JDBC drivers are automatically loaded