code: public static int getTypeValForSqlType(SqlType sqlType) throws SQLException {
  		int[] typeVals = typeToValMap.get(sqlType);
  		if (typeVals == null) {
  			throw new SQLException("SqlType is unknown to type val mapping: " + sqlType);
  		}
  		if (typeVals.length == 0) {
  			throw new SQLException("SqlType does not have any JDBC type value mapping: " + sqlType);
  		} else {
  			return typeVals[0];
  		}
  	}
docs: Returns the primary type value associated with the SqlType argument.