com.googlecode.jdbw.server.h2
Class H2JDBCDriverDescriptor
java.lang.Object
com.googlecode.jdbw.server.h2.H2JDBCDriverDescriptor
- All Implemented Interfaces:
- JDBCDriverDescriptor
public class H2JDBCDriverDescriptor
- extends Object
- implements JDBCDriverDescriptor
- Author:
- Martin Berglund
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
H2JDBCDriverDescriptor
public H2JDBCDriverDescriptor()
formatJDBCUrlForAnonymousInMemory
public String formatJDBCUrlForAnonymousInMemory()
formatJDBCUrlForInMemory
public String formatJDBCUrlForInMemory(String name)
formatJDBCUrlForFile
public String formatJDBCUrlForFile(String databaseFilePrefix)
formatJDBCUrl
public String formatJDBCUrl(String host,
int port,
String defaultCatalog)
- Description copied from interface:
JDBCDriverDescriptor
- Given a host, port and default catalog, return a JDBC URL formatted to
be used by this driver
- Specified by:
formatJDBCUrl in interface JDBCDriverDescriptor
- Parameters:
host - Hostname of the database serverport - Port number to connect ondefaultCatalog - Default catalog to use
- Returns:
- JDBC url formatted for this driver
getDriverClassName
public String getDriverClassName()
- Specified by:
getDriverClassName in interface JDBCDriverDescriptor
- Returns:
- The full path of the JDBC driver class to be loaded
Copyright © 2012. All Rights Reserved.