com.googlecode.jdbw.server.h2
Class H2FileBasedServer
java.lang.Object
com.googlecode.jdbw.server.AbstractDatabaseServer
com.googlecode.jdbw.server.h2.H2FileBasedServer
- All Implemented Interfaces:
- DatabaseServer, H2Server
public class H2FileBasedServer
- extends AbstractDatabaseServer
- implements H2Server
- Author:
- Martin Berglund
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
H2FileBasedServer
public H2FileBasedServer(String databaseFilePrefix)
getJDBCUrl
protected String getJDBCUrl()
- Specified by:
getJDBCUrl in class AbstractDatabaseServer
getServerType
public DatabaseServerType getServerType()
- Specified by:
getServerType in interface DatabaseServer
- Returns:
- Type of the server
connect
public DatabaseConnection connect()
connect
public DatabaseConnection connect(DataSourceFactory dataSourceFactory)
- Description copied from interface:
DatabaseServer
- Created a new DataSource to this server and returns it wrapped in a
DatabaseConnection
- Specified by:
connect in interface DatabaseServer- Overrides:
connect in class AbstractDatabaseServer
- Parameters:
dataSourceFactory - Factory to use when creating the DataSource
- Returns:
- DatabaseConnection connected to the server
Copyright © 2012. All Rights Reserved.