com.ibatis.sqlmap.engine.type
public class TypeHandlerFactory extends Object
| Constructor Summary | |
|---|---|
| TypeHandlerFactory()
Default constructor | |
| Method Summary | |
|---|---|
| TypeHandler | getTypeHandler(Class type)
Get a TypeHandler for a class
|
| TypeHandler | getTypeHandler(Class type, String jdbcType)
Get a TypeHandler for a class and a JDBC type
|
| TypeHandler | getUnkownTypeHandler()
When in doubt, get the "unknown" type handler
|
| boolean | hasTypeHandler(Class type)
Tells you if a particular class has a TypeHandler
|
| void | putTypeAlias(String alias, String value)
Adds a type alias that is case insensitive. |
| void | register(Class type, TypeHandler handler)
Register (add) a type handler for a class
|
| void | register(Class type, String jdbcType, TypeHandler handler)
Register (add) a type handler for a class and JDBC type
|
| String | resolveAlias(String string)
Lookup an aliased class and return it's REAL name
|
Parameters: type - the class you want a TypeHandler for
Returns: - the handler
Parameters: type - the class jdbcType - the jdbc type
Returns: - the handler
Returns: - if I told you, it would not be unknown, would it?
Parameters: type - the class
Returns: - true if there is a TypeHandler
Parameters: alias - the alias value - the real class name
Parameters: type - the class handler - the handler instance
Parameters: type - the class jdbcType - the JDBC type handler - the handler instance
Parameters: string - the alias
Returns: - the REAL name