com.im.commons.db
Class SQLWriterRegistry.SQLDateWriter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
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
writeValueToSQL
public String writeValueToSQL(Object value)
- Specified by:
writeValueToSQL in interface SQLWriter.SQLValueWriter