Here you can find the source of convertStringToType(String type)
private static int convertStringToType(String type)
//package com.java2s; //License from project: Open Source License import java.sql.Types; public class Main { private static int convertStringToType(String type) { if (type.equalsIgnoreCase("INTEGER")) return Types.INTEGER; else if (type.equalsIgnoreCase("CHAR")) return Types.CHAR; else if (type.equalsIgnoreCase("VARCHAR")) return Types.VARCHAR; else if (type.equalsIgnoreCase("DATE")) return Types.DATE; else//w ww . j a v a 2 s . c o m return Types.BLOB; } }