Class DeleteCriteriaMethodMatch

java.lang.Object
io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
io.micronaut.data.processor.visitors.finders.criteria.DeleteCriteriaMethodMatch
All Implemented Interfaces:
MethodMatcher.MethodMatch

public class DeleteCriteriaMethodMatch extends AbstractCriteriaMethodMatch
Delete criteria method match.
Since:
3.2
  • Constructor Details

    • DeleteCriteriaMethodMatch

      public DeleteCriteriaMethodMatch(List<MethodNameParser.Match> matches, boolean isReturning)
      Default constructor.
      Parameters:
      matches - The matches
      isReturning - Is returning
  • Method Details

    • apply

      protected <T> void apply(MethodMatchContext matchContext, io.micronaut.data.model.jpa.criteria.PersistentEntityRoot<T> root, io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaDelete<T> query, SourcePersistentEntityCriteriaBuilder cb)
      Apply query match.
      Type Parameters:
      T - The entity type
      Parameters:
      matchContext - The match context
      root - The root
      query - The query
      cb - The criteria builder
    • applyProjections

      protected <T> void applyProjections(String projection, io.micronaut.data.model.jpa.criteria.PersistentEntityRoot<T> root, io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaDelete<T> query, io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaBuilder cb)
      Apply projections.
      Type Parameters:
      T - The entity type
      Parameters:
      projection - The querySequence
      root - The root
      query - The query
      cb - The criteria builder
    • build

      protected MethodMatchInfo build(MethodMatchContext matchContext)
      Specified by:
      build in class AbstractCriteriaMethodMatch
    • getOperationType

      protected io.micronaut.data.intercept.annotation.DataMethod.OperationType getOperationType()
      Specified by:
      getOperationType in class AbstractCriteriaMethodMatch
      Returns:
      The operation type