com.googlecode.jdbw.server.h2
Class H2JDBCDriverDescriptor

java.lang.Object
  extended by com.googlecode.jdbw.server.h2.H2JDBCDriverDescriptor
All Implemented Interfaces:
JDBCDriverDescriptor

public class H2JDBCDriverDescriptor
extends Object
implements JDBCDriverDescriptor

Author:
Martin Berglund

Constructor Summary
H2JDBCDriverDescriptor()
           
 
Method Summary
 String formatJDBCUrl(String host, int port, String defaultCatalog)
          Given a host, port and default catalog, return a JDBC URL formatted to be used by this driver
 String formatJDBCUrlForAnonymousInMemory()
           
 String formatJDBCUrlForFile(String databaseFilePrefix)
           
 String formatJDBCUrlForInMemory(String name)
           
 String getDriverClassName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2JDBCDriverDescriptor

public H2JDBCDriverDescriptor()
Method Detail

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 server
port - Port number to connect on
defaultCatalog - 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.