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 classSQLWriterRegistry.SQLDateWriterstatic classSQLWriterRegistry.SQLMessageFormatWriterSimple 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.SQLValueWriterDEFAULT_STRING_WRITERstatic longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SQLWriterRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWriter(DBDatabaseInfo.ColumnSQLType columnType, SQLWriter.SQLValueWriter writer)java.lang.StringwritePlaceholderToSQL(DBDatabaseInfo.ColumnSQLType colType)java.lang.StringwriteValueToSQL(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:
writeValueToSQLin interfaceSQLWriter
-
writePlaceholderToSQL
public java.lang.String writePlaceholderToSQL(DBDatabaseInfo.ColumnSQLType colType)
- Specified by:
writePlaceholderToSQLin interfaceSQLWriter
-
addWriter
public void addWriter(DBDatabaseInfo.ColumnSQLType columnType, SQLWriter.SQLValueWriter writer)
-
-