本文整理汇总了Java中org.eclipse.emf.cdo.server.IStore类的典型用法代码示例。如果您正苦于以下问题:Java IStore类的具体用法?Java IStore怎么用?Java IStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IStore类属于org.eclipse.emf.cdo.server包,在下文中一共展示了IStore类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
protected IStore createStore() {
final IDBAdapter dbAdapter = getAdapter();
final IMappingStrategy mappingStrategy = CDODBUtil.createHorizontalMappingStrategy(true, true);
final IDBConnectionProvider dbConnectionProvider = dbAdapter.createConnectionProvider(getDataSource());
return CDODBUtil.createStore(mappingStrategy, dbAdapter, dbConnectionProvider);
}
示例2: createRepository
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
private IRepository createRepository(IStore store) {
Map<String, String> props = new HashMap<>();
props.put(IRepository.Props.OVERRIDE_UUID, repositoryName);
props.put(IRepository.Props.SUPPORTING_AUDITS, "false");
props.put(IRepository.Props.SUPPORTING_BRANCHES, "false");
return CDOServerUtil.createRepository(repositoryName, store, props);
}
示例3: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
protected IStore createStore() {
mappingStrategy = createMappingStrategy();
Map<String, String> props = new HashMap<String, String>();
props.put(IMappingStrategy.PROP_QUALIFIED_NAMES, "true"); //$NON-NLS-1$
mappingStrategy.setProperties(props);
store = CDODBUtil.createStore(mappingStrategy, createDBAdapter(), DBUtil.createConnectionProvider(getDataSource()));
mappingStrategy.setStore(store);
return store;
}
示例4: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
File tempFolder = getTempDirectory();
DataSource dataSource = Index.createDataSource(tempFolder, getRepositoryName(), null);
H2Adapter.createSchema(dataSource, getRepositoryName(), false);
IStore store = LissomeStoreUtil.createStore(tempFolder);
return store;
}
示例5: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
private IStore createStore(JdbcDataSource dataSource) {
IMappingStrategy mappingStrategy = CDODBUtil.createHorizontalMappingStrategy(true);
IDBAdapter dbAdapter = new H2Adapter();
IDBConnectionProvider dbConnectionProvider = DBUtil.createConnectionProvider(dataSource);
return CDODBUtil.createStore(mappingStrategy, dbAdapter, dbConnectionProvider);
}
示例6: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
File tempFolder = getTempFile();
IStore store = new DB4OStore(tempFolder.getAbsolutePath(), 1231);
return store;
}
示例7: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return CDOMongoDBUtil.createStore(MONGO_LOCATION_URI, getRepositoryName());
}
示例8: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return new CouchbaseStore(Collections.singletonList(COUCHBASE_URI), getRepositoryName(), USER, PASS);
}
示例9: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return MEMStoreUtil.createMEMStore();
}
示例10: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
/**
* Creates the {@link IStore}.
*
* @return the created {@link IStore}
*/
protected IStore createStore() {
return MEMStoreUtil.createMEMStore();
}
示例11: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
/**
* Creates the {@link IStore}.
*
* @return the created {@link IStore}
*/
protected IStore createStore() {
return MEMStoreUtil.createMEMStore();
}
示例12: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
protected abstract IStore createStore();