org.eclipse.emf.cdo.server.db
Class CDODBUtil

java.lang.Object
  extended by org.eclipse.emf.cdo.server.db.CDODBUtil

public final class CDODBUtil
extends Object

Author:
Eike Stepper

Field Summary
static int DEFAULT_STATEMENT_CACHE_CAPACITY
           
static String EXT_POINT_MAPPING_STRATEGIES
           
 
Method Summary
static IMappingStrategy createHorizontalMappingStrategy(boolean auditing)
           
static IMappingStrategy createHorizontalMappingStrategy(boolean auditing, boolean branching)
           
static IMappingStrategy createMappingStrategy(String type)
          Can only be used when Eclipse is running.
static IPreparedStatementCache createStatementCache()
          Creates a prepared statement cache with the default capacity.
static IPreparedStatementCache createStatementCache(int capacity)
          Creates a prepared statement cache with the given capacity.
static IDBStore createStore(IMappingStrategy mappingStrategy, IDBAdapter dbAdapter, IDBConnectionProvider dbConnectionProvider)
           
static void prepareContainer(IManagedContainer container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STATEMENT_CACHE_CAPACITY

public static final int DEFAULT_STATEMENT_CACHE_CAPACITY
Since:
2.0
See Also:
Constant Field Values

EXT_POINT_MAPPING_STRATEGIES

public static final String EXT_POINT_MAPPING_STRATEGIES
Since:
2.0
See Also:
Constant Field Values
Method Detail

prepareContainer

public static void prepareContainer(IManagedContainer container)
Since:
4.0

createStore

public static IDBStore createStore(IMappingStrategy mappingStrategy,
                                   IDBAdapter dbAdapter,
                                   IDBConnectionProvider dbConnectionProvider)
Since:
2.0

createHorizontalMappingStrategy

public static IMappingStrategy createHorizontalMappingStrategy(boolean auditing)
Since:
2.0

createHorizontalMappingStrategy

public static IMappingStrategy createHorizontalMappingStrategy(boolean auditing,
                                                               boolean branching)
Since:
3.0

createMappingStrategy

public static IMappingStrategy createMappingStrategy(String type)
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.

Since:
2.0
See Also:
createHorizontalMappingStrategy(boolean), createHorizontalMappingStrategy(boolean, boolean)

createStatementCache

public static IPreparedStatementCache createStatementCache()
Creates a prepared statement cache with the default capacity.

Since:
2.0
See Also:
createStatementCache(int)

createStatementCache

public static IPreparedStatementCache createStatementCache(int capacity)
Creates a prepared statement cache with the given capacity.

Since:
2.0


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.