• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ItemWriter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: createItemWriterProxy

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
public static ItemWriterProxy createItemWriterProxy(String id, InjectionReferences injectionRefs, StepContextImpl stepContext) throws ArtifactValidationException {
    ItemWriter loadedArtifact = (ItemWriter)loadArtifact(id, injectionRefs);
    ItemWriterProxy proxy = new ItemWriterProxy(loadedArtifact);
    proxy.setStepContext(stepContext);
    
    return proxy;
}
 
开发者ID:WASdev,项目名称:standards.jsr352.jbatch,代码行数:8,代码来源:ProxyFactory.java


示例2: initializeUI

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
@Override
public void initializeUI(UIBuilder builder) throws Exception {
	reader.setCompleter(new BatchUICompleter(AbstractItemReader.class,
			ItemReader.class));
	processor.setCompleter(new BatchUICompleter(null, ItemProcessor.class));
	writer.setCompleter(new BatchUICompleter(AbstractItemWriter.class,
			ItemWriter.class));
	
	reader.addValidator(new NamedValidator());
	processor.addValidator(new NamedValidator());
	writer.addValidator(new NamedValidator());

	jobXML.addValidator(new UIValidator() {

		@Override
		public void validate(UIValidationContext context) {
			String jobXMLName = ((String)context.getCurrentInputComponent().getValue());
			
			FileResource<?> resource = getJobXMLResource(context.getUIContext(),
					jobXMLName);
			if (resource.exists()) {
				context.addValidationError(context.getCurrentInputComponent(), resource.getFullyQualifiedName() + " already exists");
			}
		}

	});
	builder.add(jobXML).add(reader).add(processor).add(writer);
}
 
开发者ID:javaee-samples,项目名称:forge-addons,代码行数:29,代码来源:BatchNewJobXmlCommand.java


示例3: CheckpointManager

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
public CheckpointManager(final ItemReader reader, final ItemWriter writer,
                         final CheckpointAlgorithm chkptAlg,
                         final long jobInstanceID, final String stepId,
                         final PersistenceManagerService persistenceManagerService,
                         final DataRepresentationService dataRepresentationService) {
    this.readerProxy = reader;
    this.writerProxy = writer;
    this.checkpointAlgorithm = chkptAlg;
    this.stepId = stepId;
    this.jobInstanceID = jobInstanceID;

    this.persistenceManagerService = persistenceManagerService;
    this.dataRepresentationService = dataRepresentationService;
}
 
开发者ID:apache,项目名称:incubator-batchee,代码行数:15,代码来源:CheckpointManager.java


示例4: ItemWriterProxy

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
ItemWriterProxy(ItemWriter delegate) {     	
     super(delegate);
}
 
开发者ID:WASdev,项目名称:standards.jsr352.jbatch,代码行数:4,代码来源:ItemWriterProxy.java


示例5: createItemWriterProxy

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
public static ItemWriter createItemWriterProxy(final BatchArtifactFactory factory, final String id, final InjectionReferences injectionRefs,
                                               final RuntimeJobExecution execution) {
    final ItemWriter loadedArtifact = (ItemWriter) loadArtifact(factory, id, injectionRefs, execution);
    return createProxy(loadedArtifact, injectionRefs, "writeItems");
}
 
开发者ID:apache,项目名称:incubator-batchee,代码行数:6,代码来源:ProxyFactory.java


示例6: open

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
@Override
public void open(final Serializable checkpoint) throws Exception {
    groovyInstance = Groovys.newInstance(ItemWriter.class, scriptPath, jobContext, stepContext);
    delegate = groovyInstance.getInstance();
    delegate.open(checkpoint);
}
 
开发者ID:apache,项目名称:incubator-batchee,代码行数:7,代码来源:GroovyItemWriter.java


示例7: MultiWriterBase

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
protected MultiWriterBase(final ItemWriter writer1, final ItemWriter writer2) {
    init(writer1, writer2);
}
 
开发者ID:apache,项目名称:incubator-batchee,代码行数:4,代码来源:MultiWriterBase.java


示例8: init

import javax.batch.api.chunk.ItemWriter; //导入依赖的package包/类
protected void init(final ItemWriter writer1, final ItemWriter writer2) {
    this.writer1 = writer1;
    this.writer2 = writer2;
}
 
开发者ID:apache,项目名称:incubator-batchee,代码行数:5,代码来源:MultiWriterBase.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BackupStore类代码示例发布时间:2022-05-22
下一篇:
Java ChatMessageListener类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap