Class.forName("org.h2.Driver");
Connection conn = DriverManager.getConnection(
"jdbc:h2:˜/test", "sa", "sa");
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static final String | |
| private static final Driver | |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: if the driver understands the URLthe database URL url)Implements java. Check if the driver understands this URL. |
| public Connection | Returns: the new connection or null if the URL is not supportedthe database URL url, Properties the connection properties info)Implements java. Open a database connection. |
| public int | Returns: the major version numberImplements java. Get the major version number of the driver. |
| public int | Returns: the minor version numberImplements java. Get the minor version number of the driver. |
| public java. | |
| public DriverPropertyInfo[] | Returns: a zero length arraythe database URL url, Properties the connection properties info)Implements java. Get the list of supported properties. |
| public boolean | Returns: trueImplements java. Check if this driver is compliant to the JDBC specification. |
| public static synchronized Driver | |
| public static void | setDefaultConnection(Connection
to set default to c)INTERNAL Sets, on a per-thread basis, the default-connection for user-defined functions. |
| public static void | |
| public static synchronized void |
| DEFAULT_CONNECTION | back to summary |
|---|---|
| private static final ThreadLocal<Connection> DEFAULT_CONNECTION | |
| DEFAULT_URL | back to summary |
|---|---|
| private static final String DEFAULT_URL | |
| INSTANCE | back to summary |
|---|---|
| private static final Driver INSTANCE | |
| registered | back to summary |
|---|---|
| private static boolean registered | |
| Driver | back to summary |
|---|---|
| public Driver() | |
| acceptsURL | back to summary |
|---|---|
| public boolean acceptsURL(String url) throws SQLException Implements java. Check if the driver understands this URL. This method should not be called by an application.
| |
| connect | back to summary |
|---|---|
| public Connection connect(String url, Properties info) throws SQLException Implements java. Open a database connection. This method should not be called by an application. Instead, the method DriverManager.getConnection should be used.
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Implements java. Get the major version number of the driver. This method should not be called by an application.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Implements java. Get the minor version number of the driver. This method should not be called by an application.
| |
| getParentLogger | back to summary |
|---|---|
| public java. Implements java. [Not supported]
| |
| getPropertyInfo | back to summary |
|---|---|
| public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) Implements java. Get the list of supported properties. This method should not be called by an application.
| |
| jdbcCompliant | back to summary |
|---|---|
| public boolean jdbcCompliant() Implements java. Check if this driver is compliant to the JDBC specification. This method should not be called by an application.
| |
| load | back to summary |
|---|---|
| public static synchronized Driver load() INTERNAL
| |
| setDefaultConnection | back to summary |
|---|---|
| public static void setDefaultConnection(Connection c) INTERNAL Sets, on a per-thread basis, the default-connection for user-defined functions.
| |
| setThreadContextClassLoader | back to summary |
|---|---|
| public static void setThreadContextClassLoader(Thread thread) INTERNAL
| |
| unload | back to summary |
|---|---|
| public static synchronized void unload() INTERNAL | |