Class ConflictForTargetEntitiesFilter

java.lang.Object
ch.tocco.nice2.optional.calendar.api.util.persist.AbstractEntityFilter
ch.tocco.nice2.optional.conflict.api.util.ConflictForTargetEntitiesFilter
All Implemented Interfaces:
EntityFilter

public class ConflictForTargetEntitiesFilter extends AbstractEntityFilter

Creates a query that finds all conflicts for a given target entity.

It can be applied to a query that finds Conflict entities. It will extend the query to return those Conflicts where either one of the CalendarEventss are linked to the specified target entity using the specified relation name.

  • Constructor Details

    • ConflictForTargetEntitiesFilter

      public ConflictForTargetEntitiesFilter(List<PrimaryKey> targets, String relationName)
  • Method Details

    • appendQuery

      public Condition appendQuery(String entityModel) throws PersistException
      Description copied from interface: EntityFilter
      Append to the partial query and return the "next query step". Return null, to not contribute to the query. This filter is then discarded.
      Parameters:
      entityModel - the entity model the query is for
      Throws:
      PersistException