Package com.im.commons.db.columnhandling
Class ColumnHandlerFactory.Context<T>
- java.lang.Object
-
- com.im.commons.db.columnhandling.ColumnHandlerFactory.Context<T>
-
- Type Parameters:
T
- class type of columnHandler
- Enclosing interface:
- ColumnHandlerFactory
public static final class ColumnHandlerFactory.Context<T> extends java.lang.Object
Context needed for creating a ColumnHandler. Determines type, ie. Integer for *IntegerColumnHandler.
-
-
Constructor Summary
Constructors Constructor Description Context(java.lang.Class<T> type, java.lang.String columnName, int jdbcType, DBDatabaseInfo.ColumnSQLType sqlType, org.springframework.jdbc.support.lob.LobHandler lobHandler, SQLWriter sqlWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(ColumnHandler<T> ch)
Applies this context on aColumnHandler
.java.lang.String
getColumnName()
int
getJdbcType()
org.springframework.jdbc.support.lob.LobHandler
getLobHandler()
DBDatabaseInfo.ColumnSQLType
getSqlType()
SQLWriter
getSqlWriter()
java.lang.Class<T>
getType()
-
-
-
Constructor Detail
-
Context
public Context(java.lang.Class<T> type, java.lang.String columnName, int jdbcType, DBDatabaseInfo.ColumnSQLType sqlType, org.springframework.jdbc.support.lob.LobHandler lobHandler, SQLWriter sqlWriter)
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName()
-
getJdbcType
public int getJdbcType()
-
getSqlType
public DBDatabaseInfo.ColumnSQLType getSqlType()
-
getLobHandler
public org.springframework.jdbc.support.lob.LobHandler getLobHandler()
-
getSqlWriter
public SQLWriter getSqlWriter()
-
getType
public java.lang.Class<T> getType()
-
apply
public void apply(ColumnHandler<T> ch)
Applies this context on aColumnHandler
.- Parameters:
ch
- colHandler to be modified
-
-