//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//packageorg.apache.ibatis.type;importjava.sql.CallableStatement;importjava.sql.PreparedStatement;importjava.sql.ResultSet;importjava.sql.SQLException;importorg.apache.ibatis.executor.result.ResultMapException;importorg.apache.ibatis.session.Configuration;publicabstractclassBaseTypeHandler<T>extendsTypeReference<T>implementsTypeHandler<T>{/** @deprecated */@DeprecatedprotectedConfiguration configuration;publicBaseTypeHandler(){}/** @deprecated */@DeprecatedpublicvoidsetConfiguration(Configuration c){this.configuration = c;}publicvoidsetParameter(PreparedStatement ps,int i,T parameter,JdbcType jdbcType)throwsSQLException{if(parameter ==null){if(jdbcType ==null){thrownewTypeException("JDBC requires that the JdbcType must be specified for all nullable parameters.");}try{
ps.setNull(i, jdbcType.TYPE_CODE);}catch(SQLException var7){thrownewTypeException("Error setting null for parameter #"+ i +" with JdbcType "+ jdbcType +" . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: "+ var7, var7);}}else{try{this.setNonNullParameter(ps, i, parameter, jdbcType);}catch(Exception var6){thrownewTypeException("Error setting non null for parameter #"+ i +" with JdbcType "+ jdbcType +" . Try setting a different JdbcType for this parameter or a different configuration property. Cause: "+ var6, var6);}}}publicTgetResult(ResultSet rs,String columnName)throwsSQLException{try{returnthis.getNullableResult(rs, columnName);}catch(Exception var4){thrownewResultMapException("Error attempting to get column '"+ columnName +"' from result set. Cause: "+ var4, var4);}}publicTgetResult(ResultSet rs,int columnIndex)throwsSQLException{try{returnthis.getNullableResult(rs, columnIndex);}catch(Exception var4){thrownewResultMapException("Error attempting to get column #"+ columnIndex +" from result set. Cause: "+ var4, var4);}}publicTgetResult(CallableStatement cs,int columnIndex)throwsSQLException{try{returnthis.getNullableResult(cs, columnIndex);}catch(Exception var4){thrownewResultMapException("Error attempting to get column #"+ columnIndex +" from callable statement. Cause: "+ var4, var4);}}publicabstractvoidsetNonNullParameter(PreparedStatement var1,int var2,T var3,JdbcType var4)throwsSQLException;publicabstractTgetNullableResult(ResultSet var1,String var2)throwsSQLException;publicabstractTgetNullableResult(ResultSet var1,int var2)throwsSQLException;publicabstractTgetNullableResult(CallableStatement var1,int var2)throwsSQLException;}