code: public int getTypeId(Class classType) {
  
          final Class origType = classType;
          while (null != classType) {
              Integer typeObj = (Integer) _typeMap.get(classType);
              if (null != typeObj) {
                  return typeObj.intValue();
              }
              classType = classType.getSuperclass();
          }
  
          //
          // special check for blobs/clobs they are interfaces not derived from
          //
          if (Blob.class.isAssignableFrom(origType)) {
              return _typeMap.get(Blob.class).intValue();
          } else if (Clob.class.isAssignableFrom(origType)) {
              return _typeMap.get(Clob.class).intValue();
          }
  
          return TYPE_UNKNOWN;
      }
docs: Get the type id (defined by this class) for the given class.
  @param classType Class to get type of.
  @return Type id of class.