* GREY=local LOCAL HTML version of Foils prepared 13 March 1997

Foil 7 JDBC API

From Overview of Java Database Connection Basic Information Technology Course CPS616 -- Spring Semester 1997. by Udayan Parvate, Tom Pulikal (Geoffrey C. Fox) *

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



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 22 1997