Class TargetEventFilter

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

public class TargetEventFilter extends AbstractEntityFilter implements EntityFilter

Appends a query constraint to filter only those calendar events that are linked to the specified target entity.

Applies to Calendar_event

  • Constructor Details

    • TargetEventFilter

      public TargetEventFilter(String relationName, Entity target)
      Parameters:
      relationName - the relation name
      target - the entity of any target that the calendar is linked to
  • 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.
      Specified by:
      appendQuery in interface EntityFilter
      Parameters:
      entityModel - the entity model the query is for
      Throws:
      PersistException