本文整理匯總了Java中org.springframework.data.repository.core.support.RepositoryFactorySupport類的典型用法代碼示例。如果您正苦於以下問題:Java RepositoryFactorySupport類的具體用法?Java RepositoryFactorySupport怎麽用?Java RepositoryFactorySupport使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RepositoryFactorySupport類屬於org.springframework.data.repository.core.support包,在下文中一共展示了RepositoryFactorySupport類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
: new SolrRepositoryFactory(this.solrClient);
factory.setSchemaCreationSupport(schemaCreationSupport);
return factory;
}
示例2: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
: new SolrRepositoryFactory(this.solrServer);
factory.setSchemaCreationSupport(schemaCreationSupport);
return factory;
}
示例3: testCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Test
public void testCreateRepositoryFactory() {
final DocumentDbRepositoryFactoryBean factoryBean =
new DocumentDbRepositoryFactoryBean(PersonRepository.class, dbTemplate);
final RepositoryFactorySupport factory = factoryBean.createRepositoryFactory();
assertThat(factory).isNotNull();
}
開發者ID:Microsoft,項目名稱:spring-data-documentdb,代碼行數:8,代碼來源:DocumentDbRepositoryFactoryBeanUnitTest.java
示例4: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
DatasourceMapper datasourceMapper = new JpaDatasourceMapper(entityManager.getEntityManagerFactory());
SnowdropOperations operations = new SnowdropTemplate(datasourceMapper);
SnowdropRepositoryFactory snowdropRepositoryFactory = new SnowdropRepositoryFactory(operations);
postProcessors.forEach(p -> p.postProcess(snowdropRepositoryFactory));
return new JpaWithSnowdropRepositoryFactory(entityManager, snowdropRepositoryFactory);
}
示例5: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
/** {@inheritDoc} */
@Override protected RepositoryFactorySupport createRepositoryFactory() {
try {
Ignite ignite = (Ignite)ctx.getBean("igniteInstance");
return new IgniteRepositoryFactory(ignite);
}
catch (BeansException ex) {
try {
IgniteConfiguration cfg = (IgniteConfiguration)ctx.getBean("igniteCfg");
return new IgniteRepositoryFactory(cfg);
}
catch (BeansException ex2) {
try {
String path = (String)ctx.getBean("igniteSpringCfgPath");
return new IgniteRepositoryFactory(path);
}
catch (BeansException ex3) {
throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or" +
" IgniteConfiguration or a path to Ignite's spring XML configuration must be defined in the" +
" application configuration");
}
}
}
}
示例6: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
EntityManagerFactory emf;
if(entityManagerFactoryRef==null){
emf = context.getBean(EntityManagerFactory.class);
}else{
emf = context.getBean(entityManagerFactoryRef, EntityManagerFactory.class);
}
return new GqRepositoryFactory((JefEntityManagerFactory) emf);
}
示例7: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
if (dynamoDBOperations == null)
{
dynamoDBOperations = new DynamoDBTemplate(amazonDynamoDB,dynamoDBMapperConfig);
}
return new DynamoDBRepositoryFactory(dynamoDBOperations);
}
示例8: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
return new JdbcRepositoryFactory(datasource);
}
示例9: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
return new DefaultRepositoryFactory(entityManager);
}
示例10: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
return getFactoryInstance(applicationContext);
}
示例11: getFactoryInstance
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
protected RepositoryFactorySupport getFactoryInstance(ApplicationContext applicationContext) {
return new DocumentDbRepositoryFactory(operations, applicationContext);
}
示例12: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
return new BaseRepositoryFactory(entityManager);
}
示例13: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
return new SpannerRepositoryFactory(operations);
}
示例14: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
return new SnowdropRepositoryFactory(snowdropOperations);
}
示例15: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //導入依賴的package包/類
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
return new BaseRepositoryFactory(em);
}