Class HSqlLocalDriver
- java.lang.Object
-
- com.openindex.openestate.tool.db.AbstractDbDriver
-
- com.openindex.openestate.tool.db.AbstractLocalDbDriver
-
- com.openindex.openestate.tool.db.hsql.HSqlLocalDriver
-
public class HSqlLocalDriver extends AbstractLocalDbDriver
HSqlLocalDriver.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description HSqlLocalDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Get the name of the database driver.StringgetUrl()Get the JDBC-URL to the database.voidinit()Init the JDBC-driver before the first connection is established.voidsetLocalLocation(File location)Set the local directory, where the database files are stored.voidshutdown()Shutdown the database driver, before the application is closed.voidshutdownCompact()voidshutdownImmediately()-
Methods inherited from class com.openindex.openestate.tool.db.AbstractDbDriver
getConnection, getConnection, getConnectionProperties, getUser, setUser
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public final String getName()
Description copied from class:AbstractDbDriverGet the name of the database driver.- Specified by:
getNamein classAbstractDbDriver- Returns:
- driver name
-
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
-
setLocalLocation
public final void setLocalLocation(File location)
Description copied from class:AbstractLocalDbDriverSet the local directory, where the database files are stored.- Specified by:
setLocalLocationin classAbstractLocalDbDriver- Parameters:
location- database directory
-
shutdown
public final void shutdown()
Description copied from class:AbstractDbDriverShutdown the database driver, before the application is closed.- Overrides:
shutdownin classAbstractDbDriver
-
shutdownCompact
public final void shutdownCompact()
-
shutdownImmediately
public final void shutdownImmediately()
-
-