Package org.nuxeo.ecm.core.storage.sql
Class DatabaseH2
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.DatabaseHelper
-
- org.nuxeo.ecm.core.storage.sql.DatabaseH2
-
public class DatabaseH2 extends DatabaseHelper
- Author:
- Florent Guillaume
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CONTRIB_XML
protected static String
DEF_PASSWORD
protected static String
DEF_USER
protected static String
DIRECTORY
Deprecated, for removal: This API element is subject to removal in a future version.since 11.1, unusedprotected static String
DRIVER
protected String
password
protected String
url
protected static String
URL_FORMAT
protected String
user
-
Fields inherited from class org.nuxeo.ecm.core.storage.sql.DatabaseHelper
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 Summary
Constructors Constructor Description DatabaseH2()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
checkDatabaseLive()
String
getDeploymentContrib()
protected String
getId()
Deprecated, for removal: This API element is subject to removal in a future version.since 11.1, unusedRepositoryDescriptor
getRepositoryDescriptor()
protected void
setProperties()
void
setUp()
boolean
supportsClustering()
For databases that don't support clustering.boolean
supportsFulltextSearch()
void
tearDown()
protected void
tearDownDatabase(String url)
-
Methods inherited from class org.nuxeo.ecm.core.storage.sql.DatabaseHelper
doOnAllTables, executeSql, getConnection, getRecursiveRemovalDepthLimit, setBinaryManager, setDatabaseForTests, setDatabaseName, setOwner, setProperty, setSystemProperty, sleepForFulltext, supportsArrayColumns, supportsMultipleFulltextIndexes, supportsSequenceId, supportsSoftDelete, supportsXA
-
-
-
-
Field Detail
-
DIRECTORY
@Deprecated(since="11.1", forRemoval=true) protected static final String DIRECTORY
Deprecated, for removal: This API element is subject to removal in a future version.since 11.1, unusedThis directory will be deleted and recreated.
-
DEF_USER
protected static final String DEF_USER
- See Also:
- Constant Field Values
-
DEF_PASSWORD
protected static final String DEF_PASSWORD
- See Also:
- Constant Field Values
-
CONTRIB_XML
protected static final String CONTRIB_XML
- See Also:
- Constant Field Values
-
DRIVER
protected static final String DRIVER
- See Also:
- Constant Field Values
-
URL_FORMAT
protected static final String URL_FORMAT
- See Also:
- Constant Field Values
-
url
protected String url
-
user
protected String user
-
password
protected String password
-
-
Method Detail
-
setProperties
protected void setProperties()
-
setUp
public void setUp() throws SQLException
- Overrides:
setUp
in classDatabaseHelper
- Throws:
SQLException
-
checkDatabaseLive
protected void checkDatabaseLive() throws SQLException
- Throws:
SQLException
-
getId
@Deprecated(since="11.1", forRemoval=true) protected String getId()
Deprecated, for removal: This API element is subject to removal in a future version.since 11.1, unused
-
tearDown
public void tearDown() throws SQLException
- Overrides:
tearDown
in classDatabaseHelper
- Throws:
SQLException
-
tearDownDatabase
protected void tearDownDatabase(String url) throws SQLException
- Throws:
SQLException
-
getDeploymentContrib
public String getDeploymentContrib()
- Specified by:
getDeploymentContrib
in classDatabaseHelper
-
getRepositoryDescriptor
public RepositoryDescriptor getRepositoryDescriptor()
- Specified by:
getRepositoryDescriptor
in classDatabaseHelper
-
supportsFulltextSearch
public boolean supportsFulltextSearch()
- Overrides:
supportsFulltextSearch
in classDatabaseHelper
-
supportsClustering
public boolean supportsClustering()
Description copied from class:DatabaseHelper
For databases that don't support clustering.- Overrides:
supportsClustering
in classDatabaseHelper
-
-