Save This Page
Home » h2-2008-10-24 » org.h2 » [javadoc | source]
org.h2
public class: Driver [javadoc | source]
java.lang.Object
   org.h2.Driver

All Implemented Interfaces:
    Driver

The database driver. An application should not use this class directly. The only thing the application needs to do is load the driver. This can be done using Class.forName. To load the driver and open a database connection, use the following code:
Class.forName("org.h2.Driver");
Connection conn = DriverManager.getConnection(
"jdbc:h2:˜/test", "sa", "sa");
Method from org.h2.Driver Summary:
acceptsURL,   connect,   getMajorVersion,   getMinorVersion,   getPropertyInfo,   jdbcCompliant,   load,   unload
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.h2.Driver Detail:
 public boolean acceptsURL(String url) 
    This method should not be called by an application.
 public Connection connect(String url,
    Properties info) throws SQLException 
    This method should not be called by an application.
 public int getMajorVersion() 
    This method should not be called by an application.
 public int getMinorVersion() 
    This method should not be called by an application.
 public DriverPropertyInfo[] getPropertyInfo(String url,
    Properties info) 
    This method should not be called by an application.
 public boolean jdbcCompliant() 
    This method should not be called by an application.
 public static synchronized Driver load() 
    INTERNAL
 public static synchronized  void unload() 
    INTERNAL