Here you can find the source of sqlType2Name(int sqlType)
public static final String sqlType2Name(int sqlType)
//package com.java2s; //License from project: Apache License public class Main { public static final String sqlType2Name(int sqlType) { try {//from w w w . j a v a 2 s.c o m Class cls = java.sql.Types.class; // Class.forName("java.sql.Types"); // SecurityException java.lang.reflect.Field[] fields = cls.getFields(); for (int i = 0; i < fields.length; i++) { if (fields[i].getInt(null) == sqlType) return fields[i].getName(); } } catch (Throwable ex) { } return null; } }