public class DatabaseH2 extends DatabaseHelper
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTRIB_XML |
protected static String |
DEF_PASSWORD |
protected static String |
DEF_USER |
protected static String |
DIRECTORY
This directory will be deleted and recreated.
|
protected static String |
DRIVER |
protected String |
password |
protected String |
url |
protected static String |
URL_FORMAT |
protected String |
user |
DATABASE, DATABASE_PROPERTY, databaseName, DB_CLASS_NAME_BASE, DB_DEFAULT, DB_PROPERTY, DEF_ID_TYPE, DEFAULT_DATABASE_NAME, defaultBinaryManager, DRIVER_PROPERTY, ID_TYPE_PROPERTY, owner, PASSWORD_PROPERTY, PORT_PROPERTY, SERVER_PROPERTY, URL_PROPERTY, USER_PROPERTY| Constructor and Description |
|---|
DatabaseH2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDatabaseLive() |
String |
getDeploymentContrib() |
protected String |
getId() |
RepositoryDescriptor |
getRepositoryDescriptor() |
protected void |
setProperties() |
void |
setUp() |
boolean |
supportsClustering()
For databases that don't support clustering.
|
void |
tearDown() |
protected void |
tearDownDatabase(String url) |
doOnAllTables, executeSql, getConnection, getRecursiveRemovalDepthLimit, setBinaryManager, setDatabaseForTests, setDatabaseName, setOwner, setProperty, setSystemProperty, sleepForFulltext, supportsArrayColumns, supportsMultipleFulltextIndexes, supportsSequenceId, supportsSoftDelete, supportsXAprotected static final String DIRECTORY
protected static final String DEF_USER
protected static final String DEF_PASSWORD
protected static final String CONTRIB_XML
protected static final String DRIVER
protected static final String URL_FORMAT
public DatabaseH2()
protected void setProperties()
public void setUp() throws SQLException
setUp in class DatabaseHelperSQLExceptionprotected void checkDatabaseLive() throws SQLException
SQLExceptionpublic void tearDown() throws SQLException
tearDown in class DatabaseHelperSQLExceptionprotected void tearDownDatabase(String url) throws SQLException
SQLExceptionpublic String getDeploymentContrib()
getDeploymentContrib in class DatabaseHelperpublic RepositoryDescriptor getRepositoryDescriptor()
getRepositoryDescriptor in class DatabaseHelperpublic boolean supportsClustering()
DatabaseHelpersupportsClustering in class DatabaseHelperCopyright © 2019 Nuxeo. All rights reserved.