Class QueryRunner.FeatureSet

java.lang.Object
ac.simons.neo4j.migrations.core.refactorings.QueryRunner.FeatureSet
Enclosing interface:
QueryRunner

public static final class QueryRunner.FeatureSet extends Object
Defines a feature set for any newly opened query runner. Instances of this class are immutable, use the return type pf any wither-method.
  • Method Details

    • requiredVersion

      public String requiredVersion()
      Returns:
      The required version.
    • hasBatchingSupport

      public boolean hasBatchingSupport()
      Returns:
      true when the refactoring requires batching support
    • hasElementIdSupport

      public boolean hasElementIdSupport()
      Returns:
      true when the refactoring makes use of elementId()
    • withBatchingSupport

      public QueryRunner.FeatureSet withBatchingSupport(boolean batchingSupport)
      Configures batching support.
      Parameters:
      batchingSupport - Set to true for requesting batching support
      Returns:
      New feature set
    • withElementIdSupport

      public QueryRunner.FeatureSet withElementIdSupport(boolean elementIdSupport)
      Configures elementId support.
      Parameters:
      elementIdSupport - Set to true for requesting elementId support
      Returns:
      New feature set
    • withRequiredVersion

      public QueryRunner.FeatureSet withRequiredVersion(String newRequiredVersion)
      Configure the minimum required version.
      Parameters:
      newRequiredVersion - The new required minimum version
      Returns:
      New feature set