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.ObjectContext 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 voidapply(ColumnHandler<T> ch)Applies this context on aColumnHandler.java.lang.StringgetColumnName()intgetJdbcType()org.springframework.jdbc.support.lob.LobHandlergetLobHandler()DBDatabaseInfo.ColumnSQLTypegetSqlType()SQLWritergetSqlWriter()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
-
-