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 StringCONTRIB_XMLprotected static StringDEF_PASSWORDprotected static StringDEF_USERprotected static StringDIRECTORYDeprecated, for removal: This API element is subject to removal in a future version.since 11.1, unusedprotected static StringDRIVERprotected Stringpasswordprotected Stringurlprotected static StringURL_FORMATprotected Stringuser-
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 voidcheckDatabaseLive()StringgetDeploymentContrib()protected StringgetId()Deprecated, for removal: This API element is subject to removal in a future version.since 11.1, unusedRepositoryDescriptorgetRepositoryDescriptor()protected voidsetProperties()voidsetUp()booleansupportsClustering()For databases that don't support clustering.booleansupportsFulltextSearch()voidtearDown()protected voidtearDownDatabase(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:
setUpin 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:
tearDownin classDatabaseHelper- Throws:
SQLException
-
tearDownDatabase
protected void tearDownDatabase(String url) throws SQLException
- Throws:
SQLException
-
getDeploymentContrib
public String getDeploymentContrib()
- Specified by:
getDeploymentContribin classDatabaseHelper
-
getRepositoryDescriptor
public RepositoryDescriptor getRepositoryDescriptor()
- Specified by:
getRepositoryDescriptorin classDatabaseHelper
-
supportsFulltextSearch
public boolean supportsFulltextSearch()
- Overrides:
supportsFulltextSearchin classDatabaseHelper
-
supportsClustering
public boolean supportsClustering()
Description copied from class:DatabaseHelperFor databases that don't support clustering.- Overrides:
supportsClusteringin classDatabaseHelper
-
-