Package com.im.commons.db
Class SQLWriterRegistry
- java.lang.Object
-
- com.im.commons.db.SQLWriterRegistry
-
- All Implemented Interfaces:
SQLWriter
,java.io.Serializable
public final class SQLWriterRegistry extends java.lang.Object implements SQLWriter, java.io.Serializable
- Author:
- Tim Dudgeon
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLWriterRegistry.SQLDateWriter
static class
SQLWriterRegistry.SQLMessageFormatWriter
Simple writer that takes a MessageFormat string and passes in the value as {0}/ Useful for spcifying functions.-
Nested classes/interfaces inherited from interface com.im.commons.db.SQLWriter
SQLWriter.SQLPlaceholderWriter, SQLWriter.SQLValueWriter
-
-
Field Summary
Fields Modifier and Type Field Description static SQLWriter.SQLValueWriter
DEFAULT_STRING_WRITER
static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SQLWriterRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWriter(DBDatabaseInfo.ColumnSQLType columnType, SQLWriter.SQLValueWriter writer)
java.lang.String
writePlaceholderToSQL(DBDatabaseInfo.ColumnSQLType colType)
java.lang.String
writeValueToSQL(java.lang.Object value, DBDatabaseInfo.ColumnSQLType colType)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
DEFAULT_STRING_WRITER
public static final SQLWriter.SQLValueWriter DEFAULT_STRING_WRITER
-
-
Method Detail
-
writeValueToSQL
public java.lang.String writeValueToSQL(java.lang.Object value, DBDatabaseInfo.ColumnSQLType colType)
- Specified by:
writeValueToSQL
in interfaceSQLWriter
-
writePlaceholderToSQL
public java.lang.String writePlaceholderToSQL(DBDatabaseInfo.ColumnSQLType colType)
- Specified by:
writePlaceholderToSQL
in interfaceSQLWriter
-
addWriter
public void addWriter(DBDatabaseInfo.ColumnSQLType columnType, SQLWriter.SQLValueWriter writer)
-
-