code: public String getKeyType(UniqueKeyDefinition key){
          String tType;
  
          List<ColumnDefinition> keyColumns = key.getKeyColumns();
  
          if (keyColumns.size() == 1) {
              tType = getJavaType(keyColumns.get(0).getType());
          }
          else if (keyColumns.size() <= Constants.MAX_ROW_DEGREE) {
              String generics = "";
              String separator = "";
  
              for (ColumnDefinition column : keyColumns) {
                  generics += separator + (getJavaType(column.getType()));
                  separator = ", ";
              }
  
              tType = Record.class.getName() + keyColumns.size() + "<" + generics + ">";
          }
          else {
              tType = Record.class.getName();
          }
  
          return tType;
      }
docs: Copied from JavaGenerator
  @param key
  @return