The following are some of the commonly used JDBC API calls |
public class Date |
This class extends the java.util.Date object. But unlike the java.util.Date, which stores time, this class stores the day,year and month. |
StringtoString() |
Formats a Date object as YYYY-MM-DD |
valueOf(String str) |
Converts a String str to an sql.Date object |
public class DriverManager |
This class is used to load a JDBC Driver . The main methods are |
getConnection(String URL,String username ,String password) |
throws SQLException |
After instantiating a driver using Class.forName(), a connection |
object is obtained using getConnection() with a driver URL, |
username and password. |
getDriver(String URL) throws SQLException |
Finds a driver from the registered JDBC drivers |