private void setTypeMappers ( TypeMapper [ ] typeMappers ) throws SQLException { if ( typeMappers . length > 0 ) { Map < String , Class < ? > > mappers = _connection . getTypeMap ( ) ; for ( TypeMapper t : typeMappers ) { mappers . put ( t . UDTName ( ) , t . mapperClass ( ) ) ; } _connection . setTypeMap ( mappers ) ; } }
Set any custom type mappers specifed in the annotation for the connection . Used for mapping SQL UDTs to java classes .