Class CsvReader<T>

java.lang.Object
io.ebean.csv.reader.CsvReader<T>

public class CsvReader<T> extends Object
Implementation of the CsvReader
  • Field Details

    • persistBatchSize

      protected int persistBatchSize
      The batch size used for JDBC statement batching.
  • Constructor Details

  • Method Details

    • setPersistBatchSize

      public void setPersistBatchSize(int persistBatchSize)
    • setIgnoreHeader

      public void setIgnoreHeader()
    • setAddPropertiesFromHeader

      public void setAddPropertiesFromHeader()
    • setHasHeader

      public void setHasHeader(boolean hasHeader, boolean addPropertiesFromHeader)
    • setLogInfoFrequency

      public void setLogInfoFrequency(int logInfoFrequency)
    • addIgnore

      public void addIgnore()
    • addProperty

      public void addProperty(String propertyName)
    • addProperty

      public void addProperty(String propertyName, StringParser parser)
    • process

      public void process(Reader reader) throws Exception
      Throws:
      Exception
    • process

      public void process(Reader reader, CsvCallback<T> callback) throws Exception
      Throws:
      Exception
    • buildBeanFromLineContent

      protected T buildBeanFromLineContent(int row, String[] line)
    • convertAndSetColumn

      protected void convertAndSetColumn(int columnPos, String strValue, EntityBean bean)