View Javadoc
1   package org.csveed.bean;
2   
3   import java.util.Collection;
4   
5   import org.csveed.row.RowWriter;
6   
7   /**
8   * Class for writing Beans
9   */
10  public interface BeanWriter<T> {
11  
12      /**
13      * Writes a collection of Beans to the table
14      * @param beans beans to write to the table
15      */
16      void writeBeans(Collection<T> beans);
17  
18      /**
19      * Writes a single Bean to the table
20      * @param bean bean to write to the table
21      */
22      void writeBean(T bean);
23  
24      /**
25       * Writes the header of a Bean type to the table
26       */
27      void writeHeader();
28  
29      RowWriter getRowWriter();
30  
31  }