code: public String getTypeNameForCast(Class<?> type) {
          Integer jdbcType = jdbcTypeMapping.get(type);
          if (jdbcType == null) {
              jdbcType = javaTypeMapping.getType(type).getSQLTypes()[0];
          }
          return templates.getCastTypeNameForCode(jdbcType);
      }
docs: Get the SQL type name for a cast operation
  
  @param type java type
  @return SQL type name