Package org.eclipse.emf.cdo.server.db
Class CDODBUtil
java.lang.Object
org.eclipse.emf.cdo.server.db.CDODBUtil
Various static methods that may help in setting up and dealing with
DB stores
.- Author:
- Eike Stepper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMappingStrategy
Creates a horizontalmapping strategy
that supports all valid combinations of auditing and branching.static IMappingStrategy
createHorizontalMappingStrategy
(boolean auditing) static IMappingStrategy
createHorizontalMappingStrategy
(boolean auditing, boolean branching) static IMappingStrategy
createHorizontalMappingStrategy
(boolean auditing, boolean branching, boolean withRanges) static IMappingStrategy
createMappingStrategy
(String type) Can only be used when Eclipse is running.static IPreparedStatementCache
Deprecated.static IPreparedStatementCache
createStatementCache
(int capacity) Deprecated.As of 4.2 useIDBConnection.prepareStatement(String, org.eclipse.net4j.db.IDBPreparedStatement.ReuseProbability)
.static IDBStore
createStore
(IMappingStrategy mappingStrategy, org.eclipse.net4j.db.IDBAdapter dbAdapter, org.eclipse.net4j.db.IDBConnectionProvider dbConnectionProvider) static IDBStore
createStore
(IMappingStrategy mappingStrategy, org.eclipse.net4j.db.IDBAdapter dbAdapter, org.eclipse.net4j.db.IDBConnectionProvider dbConnectionProvider, Map<String, String> properties) static void
prepareContainer
(org.eclipse.net4j.util.container.IManagedContainer container)
-
Field Details
-
DEFAULT_STATEMENT_CACHE_CAPACITY
public static final int DEFAULT_STATEMENT_CACHE_CAPACITY- Since:
- 2.0
- See Also:
-
EXT_POINT_MAPPING_STRATEGIES
- Since:
- 2.0
- See Also:
-
PROP_WITH_RANGES
- Since:
- 4.1
- See Also:
-
PROP_COPY_ON_BRANCH
- Since:
- 4.1
- See Also:
-
PROP_ZEROBASED_INDEX
- Since:
- 4.1
- See Also:
-
-
Method Details
-
prepareContainer
public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container) - Since:
- 4.0
-
createStore
public static IDBStore createStore(IMappingStrategy mappingStrategy, org.eclipse.net4j.db.IDBAdapter dbAdapter, org.eclipse.net4j.db.IDBConnectionProvider dbConnectionProvider) - Since:
- 2.0
-
createStore
public static IDBStore createStore(IMappingStrategy mappingStrategy, org.eclipse.net4j.db.IDBAdapter dbAdapter, org.eclipse.net4j.db.IDBConnectionProvider dbConnectionProvider, Map<String, String> properties) - Since:
- 4.2
-
createHorizontalMappingStrategy
- Since:
- 2.0
-
createHorizontalMappingStrategy
- Since:
- 3.0
-
createHorizontalMappingStrategy
public static IMappingStrategy createHorizontalMappingStrategy(boolean auditing, boolean branching, boolean withRanges) - Since:
- 4.1
-
createHorizontalMappingStrategy
Creates a horizontalmapping strategy
that supports all valid combinations of auditing and branching.- Since:
- 4.1
-
createMappingStrategy
Can only be used when Eclipse is running. In standalone scenarios create the mapping strategy instance by directly calling the constructor of the mapping strategy class. -
createStatementCache
Deprecated.As of 4.2 useIDBConnection.prepareStatement(String, org.eclipse.net4j.db.IDBPreparedStatement.ReuseProbability)
.- Since:
- 2.0
-
createStatementCache
Deprecated.As of 4.2 useIDBConnection.prepareStatement(String, org.eclipse.net4j.db.IDBPreparedStatement.ReuseProbability)
.- Since:
- 2.0
-
IDBConnection.prepareStatement(String, org.eclipse.net4j.db.IDBPreparedStatement.ReuseProbability)
.