Class SQLWriterRegistry.SQLDateWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLDateWriter​(java.lang.String sqlFormat, java.lang.String dateFormat)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String writeValueToSQL​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLDateWriter

        public SQLDateWriter​(java.lang.String sqlFormat,
                             java.lang.String dateFormat)
        Parameters:
        sqlFormat - The string that is written to the SQL as a MessageFormat string. e.g DATE(''{0}'') [note: the quote marks need double quoting ('')]
        dateFormat - The format for the date that is needed by the DB e.g. yyyy-MM-dd would generate 2001-12-25 for Christmas day 2001