code: public int getColumnType(final int column) throws SQLException {
              final Class<?> clazz = this.columnClasses.get(column-1);
  
              if (clazz == null) {
                  return -1;
              } // end of if
  
              // ---
  
              String cn = null;
  
              if (clazz.isPrimitive()) {
                  if (clazz.equals(Boolean.TYPE)) { 
                      cn = Boolean.class.getName();
                  } // end of if
  
                  if (clazz.equals(Character.TYPE)) {
                      cn = Character.class.getName();
                  } // end of if
  
                  if (clazz.equals(Byte.TYPE)) {
                      cn = Byte.class.getName();
                  } // end of if
  
                  if (clazz.equals(Short.TYPE)) {
                      cn = Short.class.getName();
                  } // end of if
  
                  if (clazz.equals(Integer.TYPE)) {
                      cn = Integer.class.getName();
                  } // end of if
  
                  if (clazz.equals(Long.TYPE)) {
                      cn = Long.class.getName();
                  } // end of if
  
                  if (clazz.equals(Float.TYPE)) {
                      cn = Float.class.getName();
                  } // end of if
  
                  if (clazz.equals(Double.TYPE)) {
                      cn = Double.class.getName();
                  } // end of if
              } else {
                  cn = clazz.getName();
              } // end of else
  
              final String className = cn;
  
              if (className == null) {
                  return -1;
              } // end of if
  
              // ---
  
              for (final Map.Entry<Integer,String> kv : Defaults.
                       jdbcTypeMappings.entrySet()) {
  
                  if (kv.getValue().equals(className)) {
                      return kv.getKey();
                  } // end of if
              } // end of for
  
              return -1;
          }
docs: {@inheritDoc}