/* */ private JDBCTypeSimple createTypeSimple(JDBCCMPFieldMetaData cmpField) throws DeploymentException
/* */ {
/* 559 */ String columnName = cmpField.getColumnName();
/* 560 */ Class javaType = cmpField.getFieldType();
/* */
/* 562 */ JDBCMappingMetaData typeMappingMD = this.typeMapping.getTypeMappingMetaData(javaType);
/* 563 */ String paramSetter = typeMappingMD.getParamSetter();
/* 564 */ String resultReader = typeMappingMD.getResultReader();
/* */
/* 567 */ String sqlType = cmpField.getSQLType();
/* */ int jdbcType;
/* */ int jdbcType;
/* 568 */ if (sqlType != null)
/* */ {
/* 570 */ jdbcType = cmpField.getJDBCType();
/* */ }
/* */ else
/* */ {
/* 575 */ sqlType = typeMappingMD.getSqlType();
/* 576 */ jdbcType = typeMappingMD.getJdbcType();
/* */ }
/* */
/* 579 */ boolean notNull = cmpField.isNotNull();
/* 580 */ boolean autoIncrement = cmpField.isAutoIncrement();
/* */
/* 582 */ Mapper mapper = null;
/* 583 */ JDBCUserTypeMappingMetaData userTypeMapping = (JDBCUserTypeMappingMetaData)this.userTypeMappings.get(javaType.getName());
/* 584 */ if (userTypeMapping != null)
/* */ {
/* 586 */ String mappedTypeStr = userTypeMapping.getMappedType();
/* */ try
/* */ {
/* 589 */ ClassLoader contextClassLoader = TCLAction.UTIL.getContextClassLoader();
/* 590 */ Class mapperClass = contextClassLoader.loadClass(userTypeMapping.getMapper());
/* 591 */ mapper = (Mapper)mapperClass.newInstance();
/* 592 */ javaType = contextClassLoader.loadClass(mappedTypeStr);
/* 593 */ if (cmpField.getSQLType() == null)
/* */ {
/* 595 */ JDBCMappingMetaData mappingMD = this.typeMapping.getTypeMappingMetaData(javaType);
/* 596 */ sqlType = mappingMD.getSqlType();
/* 597 */ jdbcType = mappingMD.getJdbcType();
/* 598 */ paramSetter = mappingMD.getParamSetter();
/* 599 */ resultReader = mappingMD.getResultReader();
/* */ }
/* */ }
/* */ catch (ClassNotFoundException e)
/* */ {
/* 604 */ throw new DeploymentException("Class not found for mapper: " + userTypeMapping.getMapper(), e);