org.lexgrid.loader.writer
Class ListWriter<T>

java.lang.Object
  extended by org.lexgrid.loader.writer.ListWriter<T>
All Implemented Interfaces:
org.springframework.batch.item.ItemWriter<java.util.List<T>>

public class ListWriter<T>
extends java.lang.Object
implements org.springframework.batch.item.ItemWriter<java.util.List<T>>

The Class ListWriter.

Author:
Kevin Peterson

Constructor Summary
ListWriter()
           
 
Method Summary
 org.springframework.batch.item.ItemWriter<T> getDelegate()
          Gets the delegate.
 int getMaxBufferSize()
          Gets the max buffer size.
 void setDelegate(org.springframework.batch.item.ItemWriter<T> delegate)
          Sets the delegate.
 void setMaxBufferSize(int maxBufferSize)
          Sets the max buffer size.
 void write(java.util.List<? extends java.util.List<T>> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListWriter

public ListWriter()
Method Detail

write

public void write(java.util.List<? extends java.util.List<T>> list)
           throws java.lang.Exception
Specified by:
write in interface org.springframework.batch.item.ItemWriter<java.util.List<T>>
Throws:
java.lang.Exception

getDelegate

public org.springframework.batch.item.ItemWriter<T> getDelegate()
Gets the delegate.

Returns:
the delegate

setDelegate

public void setDelegate(org.springframework.batch.item.ItemWriter<T> delegate)
Sets the delegate.

Parameters:
delegate - the new delegate

getMaxBufferSize

public int getMaxBufferSize()
Gets the max buffer size.

Returns:
the max buffer size

setMaxBufferSize

public void setMaxBufferSize(int maxBufferSize)
Sets the max buffer size.

Parameters:
maxBufferSize - the new max buffer size

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.