org.jboss.windup.config.query.Query类的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.jboss.windup.config.query.Query类的一些代码示例,展示了Query类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query类的具体详情如下:
包路径:org.jboss.windup.config.query.Query
类名称:Query

Query介绍

暂无

代码示例

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

@Override
public ConditionBuilder when()
{
  return Query.fromType(ArchiveModel.class);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

@Override
public QueryBuilderWith withProperty(String property, Object searchValue)
{
  return withProperty(property, QueryPropertyComparisonType.EQUALS, searchValue);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

/**
 * Begin this {@link Query} with results of a prior {@link Query}, read from the variable with the given name.
 */
public static QueryBuilderFrom from(final String sourceVarName)
{
  final Query query = new Query();
  query.setInputVariablesName(sourceVarName);
  return query;
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

/**
 * Begin this {@link Query} with all Frame instances that are the result of the provided GremlinQueryCriterion.
 */
public static QueryBuilderPiped gremlin(final QueryGremlinCriterion criterion)
{
  return new Query().piped(criterion);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-xml

if (StringUtils.isNotBlank(from))
  query = (Query) Query.from(from);
if (query == null)
  query = (Query)Query.fromType(type);
  query = (Query)query.includingType(type);
      query.withProperty(propertyName, Boolean.valueOf(value));
    } else
        query.withProperty(propertyName, QueryPropertyComparisonType.REGEX, value);
      else
        query.withProperty(propertyName, value);
  query.as(as);

代码示例来源:origin: org.jboss.windup.rules.apps/rules-java

private boolean evaluate(GraphRewrite event, EvaluationContext context, EvaluationStrategy evaluationStrategy)
  QueryBuilderFrom query = Query.fromType(JavaTypeReferenceModel.class);
  if (!StringUtils.isBlank(getInputVariablesName()))
    query = Query.from(getInputVariablesName());

代码示例来源:origin: windup/windup

QueryBuilderFrom fromQuery = Query.from(getInputVariablesName());
  QueryBuilderPiped piped = fromQuery.piped(new QueryGremlinCriterion()
              JavaTypeReferenceModel.class));
query = Query.from(initialQueryID);

代码示例来源:origin: windup/windup

/**
 * Begin this {@link Query} with all {@link WindupVertexFrame} instances of the given type.
 */
public static QueryBuilderFind fromType(Class<? extends WindupVertexFrame> type)
{
  final Query query = new Query();
  // this query is going to be added after evaluate() method, because in some cases we need gremlin and in some
  // frames
  query.searchType = type;
  return query;
}

代码示例来源:origin: windup/windup

if (StringUtils.isNotBlank(from))
  query = (Query) Query.from(from);
if (query == null)
  query = (Query)Query.fromType(type);
  query = (Query)query.includingType(type);
      query.withProperty(propertyName, Boolean.valueOf(value));
    } else
        query.withProperty(propertyName, QueryPropertyComparisonType.REGEX, value);
      else
        query.withProperty(propertyName, value);
  query.as(as);

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

QueryBuilderFrom fromQuery = Query.from(getInputVariablesName());
  QueryBuilderPiped piped = fromQuery.piped(new QueryGremlinCriterion()
              JavaTypeReferenceModel.class));
query = Query.from(initialQueryID);

代码示例来源:origin: windup/windup

/**
 * Begin this {@link Query} with all Frame instances that are the result of the provided GremlinQueryCriterion.
 */
public static QueryBuilderPiped gremlin(final QueryGremlinCriterion criterion)
{
  return new Query().piped(criterion);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

/**
 * Begin this {@link Query} with all {@link WindupVertexFrame} instances of the given type.
 */
public static QueryBuilderFind fromType(Class<? extends WindupVertexFrame> type)
{
  final Query query = new Query();
  // this query is going to be added after evaluate() method, because in some cases we need gremlin and in some
  // frames
  query.searchType = type;
  return query;
}

代码示例来源:origin: org.jboss.windup.rules.apps/rules-java

@Override
public ConditionBuilder when()
{
  return Query.fromType(ArchiveModel.class);
}

代码示例来源:origin: windup/windup

@Override
public QueryBuilderWith withProperty(String property, Object searchValue)
{
  return withProperty(property, QueryPropertyComparisonType.EQUALS, searchValue);
}

代码示例来源:origin: windup/windup

/**
 * Begin this {@link Query} with results of a prior {@link Query}, read from the variable with the given name.
 */
public static QueryBuilderFrom from(final String sourceVarName)
{
  final Query query = new Query();
  query.setInputVariablesName(sourceVarName);
  return query;
}

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee

@Override
public ConditionBuilder when()
{
  return Query.fromType(EjbSessionBeanModel.class);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

@Override
public QueryBuilderWith withProperty(String property, Object searchValue, Object... searchValues)
{
  List<Object> values = new LinkedList<>();
  values.add(searchValue);
  values.addAll(Arrays.asList(searchValues));
  return withProperty(property, values);
}

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee

@Override
public ConditionBuilder when()
{
  return Query.fromType(SpringBeanModel.class);
}

代码示例来源:origin: windup/windup

@Override
public QueryBuilderWith withProperty(String property, Object searchValue, Object... searchValues)
{
  List<Object> values = new LinkedList<>();
  values.add(searchValue);
  values.addAll(Arrays.asList(searchValues));
  return withProperty(property, values);
}

代码示例来源:origin: org.jboss.windup.rules.apps/rules-java

@Override
public ConditionBuilder when()
{
  return Query.fromType(WindupConfigurationModel.class);
}

相关文章