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 classHSqlRemoteDriver.Protocol
-
Constructor Summary
Constructors Constructor Description HSqlRemoteDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultDbHost()StringgetDefaultDbName()IntegergetDefaultDbPort()StringgetDefaultDbProtocol()StringgetDefaultLogin()StringgetName()Get the name of the database driver.StringgetRemoteDatabase()StringgetRemoteHost()intgetRemotePort()StringgetRemoteProtocol()String[]getSupportedProtocols()StringgetUrl()Get the JDBC-URL to the database.voidinit()Init the JDBC-driver before the first connection is established.voidsetRemoteLocation(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:
getDefaultDbHostin classAbstractRemoteDbDriver
-
getDefaultDbName
public final String getDefaultDbName()
- Specified by:
getDefaultDbNamein classAbstractRemoteDbDriver
-
getDefaultDbPort
public final Integer getDefaultDbPort()
- Specified by:
getDefaultDbPortin classAbstractRemoteDbDriver
-
getDefaultDbProtocol
public final String getDefaultDbProtocol()
- Specified by:
getDefaultDbProtocolin classAbstractRemoteDbDriver
-
getDefaultLogin
public final String getDefaultLogin()
- Specified by:
getDefaultLoginin classAbstractRemoteDbDriver
-
getName
public final String getName()
Description copied from class:AbstractDbDriverGet the name of the database driver.- Specified by:
getNamein classAbstractDbDriver- Returns:
- driver name
-
getRemoteDatabase
public final String getRemoteDatabase()
- Specified by:
getRemoteDatabasein classAbstractRemoteDbDriver
-
getRemoteHost
public final String getRemoteHost()
- Specified by:
getRemoteHostin classAbstractRemoteDbDriver
-
getRemotePort
public final int getRemotePort()
- Specified by:
getRemotePortin classAbstractRemoteDbDriver
-
getRemoteProtocol
public final String getRemoteProtocol()
- Specified by:
getRemoteProtocolin classAbstractRemoteDbDriver
-
getSupportedProtocols
public final String[] getSupportedProtocols()
- Specified by:
getSupportedProtocolsin classAbstractRemoteDbDriver
-
getUrl
public final String getUrl()
Description copied from class:AbstractDbDriverGet the JDBC-URL to the database.- Specified by:
getUrlin classAbstractDbDriver- Returns:
- JDBC-URL
-
init
public final void init() throws ClassNotFoundExceptionDescription copied from class:AbstractDbDriverInit the JDBC-driver before the first connection is established.- Specified by:
initin 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:AbstractRemoteDbDriverSetup parameters to the remote database server.- Specified by:
setRemoteLocationin 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
-
-