com.im.commons.db 5.9.2

com.im.commons.db
Class SQLWriterRegistry.SQLDateWriter

java.lang.Object
  extended by com.im.commons.db.SQLWriterRegistry.SQLDateWriter
All Implemented Interfaces:
SQLWriter.SQLValueWriter, Serializable
Enclosing class:
SQLWriterRegistry

public static class SQLWriterRegistry.SQLDateWriter
extends Object
implements SQLWriter.SQLValueWriter, Serializable

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
SQLWriterRegistry.SQLDateWriter(String sqlFormat, String dateFormat)
           
 
Method Summary
 String writeValueToSQL(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SQLWriterRegistry.SQLDateWriter

public SQLWriterRegistry.SQLDateWriter(String sqlFormat,
                                       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
Method Detail

writeValueToSQL

public String writeValueToSQL(Object value)
Specified by:
writeValueToSQL in interface SQLWriter.SQLValueWriter

com.im.commons.db 5.9.2