本文整理汇总了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);
}
开发者ID:emfjson,项目名称:emfjson-samples,代码行数:9,代码来源:CDOServer.java
示例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);
}
开发者ID:atlanmod,项目名称:NeoEMF,代码行数:8,代码来源:CdoBackend.java
示例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;
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:10,代码来源:AbstractDBCDOModelRepository.java
示例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;
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:9,代码来源:JVMLissomeCDOModelRepository.java
示例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);
}
开发者ID:atlanmod,项目名称:NeoEMF,代码行数:7,代码来源:CdoBackend.java
示例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;
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:7,代码来源:JVMDB4OCDOModelRepository.java
示例7: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return CDOMongoDBUtil.createStore(MONGO_LOCATION_URI, getRepositoryName());
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:5,代码来源:JVMMongodbCDOModelRepository.java
示例8: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return new CouchbaseStore(Collections.singletonList(COUCHBASE_URI), getRepositoryName(), USER, PASS);
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:5,代码来源:JVMCouchbaseCDOModelRepository.java
示例9: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
@Override
protected IStore createStore() {
return MEMStoreUtil.createMEMStore();
}
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:5,代码来源:JVMMemCDOModelRepository.java
示例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();
}
开发者ID:ObeoNetwork,项目名称:M2Doc,代码行数:9,代码来源:CDOServer.java
示例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();
}
开发者ID:ModelWriter,项目名称:Source,代码行数:9,代码来源:CDOServer.java
示例12: createStore
import org.eclipse.emf.cdo.server.IStore; //导入依赖的package包/类
protected abstract IStore createStore();
开发者ID:opencanarias,项目名称:model-repository-benchmark,代码行数:2,代码来源:AbstractCDOModelRepository.java
注:本文中的org.eclipse.emf.cdo.server.IStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论