Class H2Database
java.lang.Object
org.eclipse.dirigible.database.h2.H2Database
H2 Database adapter.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with default root folder - user.dirH2Database
(String rootFolder) Constructor with root folder parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSource
createDataSource
(String name) Creates the data source.getDataSource
(String name) Gets the data source.Gets the data sources.getName()
Gets the name.getType()
Gets the type.void
Initialize.
-
Field Details
-
NAME
The Constant TYPE.- See Also:
-
TYPE
The Constant TYPE.- See Also:
-
DIRIGIBLE_DATABASE_H2_ROOT_FOLDER
The Constant DIRIGIBLE_DATABASE_H2_ROOT_FOLDER.- See Also:
-
DIRIGIBLE_DATABASE_H2_ROOT_FOLDER_DEFAULT
The Constant DIRIGIBLE_DATABASE_H2_ROOT_FOLDER_DEFAULT.- See Also:
-
-
Constructor Details
-
H2Database
Constructor with default root folder - user.dir- Throws:
SQLException
- in case the database cannot be created
-
H2Database
Constructor with root folder parameter.- Parameters:
rootFolder
- the root folder- Throws:
SQLException
- in case the database cannot be created
-
-
Method Details
-
initialize
public void initialize()Initialize. -
getDataSource
Gets the data source.- Parameters:
name
- the name- Returns:
- the data source
- Throws:
SQLException
-
getName
Gets the name.- Returns:
- the name
-
getType
Gets the type.- Returns:
- the type
-
createDataSource
Creates the data source.- Parameters:
name
- the name- Returns:
- the data source
- Throws:
SQLException
-
getDataSources
Gets the data sources.- Returns:
- the data sources
-