Class PredicateGeneratorRegistry

java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.PredicateGeneratorRegistry

public class PredicateGeneratorRegistry extends Object
Registry for predicate generators that maps search operators to their corresponding predicate generator implementations. This allows for dynamic retrieval of the appropriate generator based on the search operator used in a search request.
  • Method Details

    • of

      public static PredicateGenerator of(SearchOperator op)
      Retrieves the appropriate PredicateGenerator for the given SearchOperator. This method allows for dynamic selection of the generator based on the operator used in a search request.
      Parameters:
      op - the search operator for which to retrieve the predicate generator
      Returns:
      the corresponding predicate generator, or null if no generator is found for the operator