当前位置: 首页>>代码示例>>Java>>正文


Java JpaItemWriter类代码示例

本文整理汇总了Java中org.springframework.batch.item.database.JpaItemWriter的典型用法代码示例。如果您正苦于以下问题:Java JpaItemWriter类的具体用法?Java JpaItemWriter怎么用?Java JpaItemWriter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


JpaItemWriter类属于org.springframework.batch.item.database包,在下文中一共展示了JpaItemWriter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: taxCalculatorItemWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
@Bean
public JpaItemWriter<TaxCalculation> taxCalculatorItemWriter() {
    JpaItemWriter<TaxCalculation> employeeJpaItemWriter = new JpaItemWriter<>();
    employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory());
    return employeeJpaItemWriter;
}
 
开发者ID:cegeka,项目名称:batchers,代码行数:7,代码来源:ItemReaderWriterConfig.java

示例2: wsCallItemWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
@Bean
public JpaItemWriter<PayCheck> wsCallItemWriter() {
    JpaItemWriter<PayCheck> employeeJpaItemWriter = new JpaItemWriter<>();
    employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory());
    return employeeJpaItemWriter;
}
 
开发者ID:cegeka,项目名称:batchers,代码行数:7,代码来源:ItemReaderWriterConfig.java

示例3: dayActivityWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
private JpaItemWriter<DayActivity> dayActivityWriter()
{
	JpaItemWriter<DayActivity> writer = new JpaItemWriter<>();
	writer.setEntityManagerFactory(entityManager.getEntityManagerFactory());

	return writer;
}
 
开发者ID:yonadev,项目名称:yona-server,代码行数:8,代码来源:ActivityAggregationBatchJob.java

示例4: weekActivityWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
private JpaItemWriter<WeekActivity> weekActivityWriter()
{
	JpaItemWriter<WeekActivity> writer = new JpaItemWriter<>();
	writer.setEntityManagerFactory(entityManager.getEntityManagerFactory());

	return writer;
}
 
开发者ID:yonadev,项目名称:yona-server,代码行数:8,代码来源:ActivityAggregationBatchJob.java

示例5: messageDestinationWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
private JpaItemWriter<MessageDestination> messageDestinationWriter()
{
	JpaItemWriter<MessageDestination> writer = new JpaItemWriter<>();
	writer.setEntityManagerFactory(entityManager.getEntityManagerFactory());

	return writer;
}
 
开发者ID:yonadev,项目名称:yona-server,代码行数:8,代码来源:SendSystemMessageBatchJob.java

示例6: generatePDFItemWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
@Bean
public JpaItemWriter<Employee> generatePDFItemWriter() {
    JpaItemWriter<Employee> employeeJpaItemWriter = new JpaItemWriter<>();
    employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory());
    return employeeJpaItemWriter;
}
 
开发者ID:cegeka,项目名称:batchers,代码行数:7,代码来源:ItemReaderWriterConfig.java

示例7: productItemWriter

import org.springframework.batch.item.database.JpaItemWriter; //导入依赖的package包/类
@Bean
public JpaItemWriter<Product> productItemWriter() {
	JpaItemWriter<Product> itemWriter = new JpaItemWriter<Product>();
	itemWriter.setEntityManagerFactory(emf);

	return itemWriter;
}
 
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:8,代码来源:JobJpaItemWriterConfiguration.java


注:本文中的org.springframework.batch.item.database.JpaItemWriter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。