// create specially configured CharType handler
map.registerType(new CharType(true, false));
// create specially configured ByteArrayType handler
map.registerType(new ByteArrayType(true, false));
// address Sybase driver inability to handle java.lang.Short and java.lang.Byte
map.registerType(new ShortType(true));
map.registerType(new ByteType(true));
}