Class HSqlRemoteDriver
- java.lang.Object
-
- com.openindex.openestate.tool.db.AbstractDbDriver
-
- com.openindex.openestate.tool.db.AbstractRemoteDbDriver
-
- com.openindex.openestate.tool.db.hsql.HSqlRemoteDriver
-
public class HSqlRemoteDriver extends AbstractRemoteDbDriver
HSqlRemoteDriver.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HSqlRemoteDriver.Protocol
-
Constructor Summary
Constructors Constructor Description HSqlRemoteDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultDbHost()
String
getDefaultDbName()
Integer
getDefaultDbPort()
String
getDefaultDbProtocol()
String
getDefaultLogin()
String
getName()
Get the name of the database driver.String
getRemoteDatabase()
String
getRemoteHost()
int
getRemotePort()
String
getRemoteProtocol()
String[]
getSupportedProtocols()
String
getUrl()
Get the JDBC-URL to the database.void
init()
Init the JDBC-driver before the first connection is established.void
setRemoteLocation(String protocol, String host, int port, String database)
Setup parameters to the remote database server.-
Methods inherited from class com.openindex.openestate.tool.db.AbstractDbDriver
getConnection, getConnection, getConnectionProperties, getUser, setUser, shutdown
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultDbHost
public final String getDefaultDbHost()
- Specified by:
getDefaultDbHost
in classAbstractRemoteDbDriver
-
getDefaultDbName
public final String getDefaultDbName()
- Specified by:
getDefaultDbName
in classAbstractRemoteDbDriver
-
getDefaultDbPort
public final Integer getDefaultDbPort()
- Specified by:
getDefaultDbPort
in classAbstractRemoteDbDriver
-
getDefaultDbProtocol
public final String getDefaultDbProtocol()
- Specified by:
getDefaultDbProtocol
in classAbstractRemoteDbDriver
-
getDefaultLogin
public final String getDefaultLogin()
- Specified by:
getDefaultLogin
in classAbstractRemoteDbDriver
-
getName
public final String getName()
Description copied from class:AbstractDbDriver
Get the name of the database driver.- Specified by:
getName
in classAbstractDbDriver
- Returns:
- driver name
-
getRemoteDatabase
public final String getRemoteDatabase()
- Specified by:
getRemoteDatabase
in classAbstractRemoteDbDriver
-
getRemoteHost
public final String getRemoteHost()
- Specified by:
getRemoteHost
in classAbstractRemoteDbDriver
-
getRemotePort
public final int getRemotePort()
- Specified by:
getRemotePort
in classAbstractRemoteDbDriver
-
getRemoteProtocol
public final String getRemoteProtocol()
- Specified by:
getRemoteProtocol
in classAbstractRemoteDbDriver
-
getSupportedProtocols
public final String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in classAbstractRemoteDbDriver
-
getUrl
public final String getUrl()
Description copied from class:AbstractDbDriver
Get the JDBC-URL to the database.- Specified by:
getUrl
in classAbstractDbDriver
- Returns:
- JDBC-URL
-
init
public final void init() throws ClassNotFoundException
Description copied from class:AbstractDbDriver
Init the JDBC-driver before the first connection is established.- Specified by:
init
in classAbstractDbDriver
- Throws:
ClassNotFoundException
- JDBC-driver is not found
-
setRemoteLocation
public final void setRemoteLocation(String protocol, String host, int port, String database)
Description copied from class:AbstractRemoteDbDriver
Setup parameters to the remote database server.- Specified by:
setRemoteLocation
in classAbstractRemoteDbDriver
- Parameters:
protocol
- protocol, that is used for communicationhost
- host name of the database serverport
- port nr of the database serverdatabase
- name of the database
-
-