code: public int getSqlType(Class classType) {
  
          final Class origType = classType;
          while (classType != null) {
              Integer type = _typeSqlMap.get(classType);
              if (type != null) {
                  return type.intValue();
              }
              classType = classType.getSuperclass();
          }
  
          //
          // special check for blobs/clobs they are interfaces not derived from
          //
          if (Blob.class.isAssignableFrom(origType)) {
              return _typeSqlMap.get(Blob.class).intValue();
          } else if (Clob.class.isAssignableFrom(origType)) {
              return _typeSqlMap.get(Clob.class).intValue();
          }
  
          return Types.OTHER;
      }
docs: Get the SQL type of a class, start at top level class an check all super classes until match is found.
  @param classType Class to get SQL type of.
  @return Types.OTHER if cannot find SQL type.