code: public static int getTypeCode(Class<?> c) {
  		int iType = 0;
  
  		String strFieldType = c.getName();
  		if (strFieldType.equals("short")
  				|| strFieldType.equals(Short.class.getName()))
  			iType = SHORT;
  		else if (strFieldType.equals("int")
  				|| strFieldType.equals(Integer.class.getName()))
  			iType = INTEGER;
  		else if (strFieldType.equals("long")
  				|| strFieldType.equals(Long.class.getName()))
  			iType = LONG;
  		else if (strFieldType.equals("float")
  				|| strFieldType.equals(Float.class.getName()))
  			iType = FLOAT;
  		else if (strFieldType.equals("double")
  				|| strFieldType.equals(Double.class.getName()))
  			iType = DOUBLE;
  		else if (strFieldType.equals("boolean")
  				|| strFieldType.equals(Boolean.class.getName()))
  			iType = BOOLEAN;
  		else if (strFieldType.equals("java.lang.String"))
  			iType = STRING;
  		else if (java.sql.Timestamp.class.isAssignableFrom(c))
  			iType = TIMESTAMP;
  		else if (java.sql.Date.class.isAssignableFrom(c))
  			iType = DATE;
  		else if (java.io.InputStream.class.isAssignableFrom(c))
  			iType = INPUTSTREAM;
  		else if (java.util.Collection.class.isAssignableFrom(c))
  			iType = COLLECTION;
  		return iType;
  	}
docs: 获取数据类型