iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

IBatisNet.DataMapper.TypeHandlers Namespace

Namespace hierarchy

Classes

Class Description
AnsiStringTypeHandler TypeHandler for AnsiString dbType
BaseTypeHandler Summary description for BaseTypeHandler.
BooleanTypeHandler Boolean TypeHandler.
ByteArrayTypeHandler Description résumée de ByteArrayTypeHandler.
ByteTypeHandler Description résumée de ByteTypeHandler.
CharTypeHandler Description résumée de CharTypeHandler.
CustomTypeHandler Custom type handler for adding a TypeHandlerCallback
DateTimeTypeHandler Description résumée de DateTimeTypeHandler.
DBNullTypeHandler DBNull TypeHandler.
DecimalTypeHandler DecimalTypeHandler.
DoubleTypeHandler Description résumée de Double.
EnumTypeHandler Summary description for EnumTypeHandler.
GuidTypeHandler Description résumée de GuidTypeHandler.
Int16TypeHandler Description résumée de Int16TypeHandler.
Int32TypeHandler Summary description for Int32TypeHandler.
Int64TypeHandler Description résumée de Int64TypeHandler.
ObjectTypeHandler Description résumée de ObjectTypeHandler.
ParameterSetterImpl A ParameterSetter implementation
ResultGetterImpl Description résumée de ResultGetterImpl.
SByteTypeHandler SByteTypeHandler.
SingleTypeHandler Description résumée de SingleTypeHandler.
StringTypeHandler Description résumée de SByteTypeHandler.
TimeSpanTypeHandler Description résumée de TimespanTypeHandler.
TypeHandlerFactory Not much of a suprise, this is a factory class for TypeHandler objects.
UInt16TypeHandler TypeHandler for UInt16 Type
UInt32TypeHandler UInt32TypeHandler
UInt64TypeHandler Summary description for UInt64TypeHandler.
UnknownTypeHandler Implementation of TypeHandler for dealing with unknown types

Interfaces

Interface Description
IParameterSetter Allows parameters to be set on the underlying prepared IDbCommand. TypeHandlerCallback implementations use this interface to process values before they are set on the IDbCommand.
IResultGetter Allows values to be retrieved from the underlying IDataReader. TypeHandlerCallback implementations use this interface to get values that they can subsequently manipulate before having them returned. * or index with these methods.
ITypeHandler Summary description for ITypeHandler.
ITypeHandlerCallback A simple interface for implementing custom type handlers.

Using this interface, you can implement a type handler that will perform customized processing before parameters are set on a IDbCommand and after values are retrieved from a IDataReader. Using a custom type handler you can extend the framework to handle types that are not supported, or handle supported types in a different way. For example, you might use a custom type handler to implement proprietary BLOB support (e.g. Oracle), or you might use it to handle booleans using "Y" and "N" instead of the more typical 0/1.