Class JdbcFmtDate

java.lang.Object
org.supercsv.cellprocessor.CellProcessorAdaptor
net.solarnetwork.node.dao.jdbc.JdbcFmtDate
All Implemented Interfaces:
org.supercsv.cellprocessor.ift.CellProcessor, org.supercsv.cellprocessor.ift.DateCellProcessor
Direct Known Subclasses:
JdbcFmtDate.Date, JdbcFmtDate.Time, JdbcFmtDate.Timestamp

public class JdbcFmtDate extends org.supercsv.cellprocessor.CellProcessorAdaptor implements org.supercsv.cellprocessor.ift.DateCellProcessor
Format dates using a Joda DateTimeFormatter.
Version:
2.0
Author:
matt
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Format a local date.
    static final class 
    Format a local time.
    static final class 
    Format an instant.
  • Field Summary

    Fields inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor

    next
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
    JdbcFmtDate(DateTimeFormatter dateFormatter, org.supercsv.cellprocessor.ift.StringCellProcessor next)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    execute(Object value, org.supercsv.util.CsvContext context)
     

    Methods inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor

    toString, validateInputNotNull

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JdbcFmtDate

      public JdbcFmtDate(DateTimeFormatter dateFormatter)
      Constructor.
      Parameters:
      dateFormatter - the formatter to use
    • JdbcFmtDate

      public JdbcFmtDate(DateTimeFormatter dateFormatter, org.supercsv.cellprocessor.ift.StringCellProcessor next)
      Constructor.
      Parameters:
      dateFormatter - the formatter to use
      next - the next processor
  • Method Details

    • execute

      public <T> T execute(Object value, org.supercsv.util.CsvContext context)
      Specified by:
      execute in interface org.supercsv.cellprocessor.ift.CellProcessor