Class CommonQuery

    • Constructor Detail

      • CommonQuery

        public CommonQuery()
    • Method Detail

      • first

        public static <TRoot> IQuery<IMappingModel<? extends org.eclipse.emf.ecore.EObject>,​TRoot> first​(Class<? extends TRoot> clazz,
                                                                                                               Object domain)
        Creates an query for a choice of the first mapping model connected with the domain model from argument (domain).
        Parameters:
        clazz - - the class of root mapping model(IMappingRoot).
        domain - - the domain model for which searching related mapping model.
        Returns:
        the query for select first mapping model.
      • first

        public static <TRoot> IQuery<IMappingModel<? extends org.eclipse.emf.ecore.EObject>,​TRoot> first​(Object domain)
        Creates an query for a choice of the first mapping model connected with the domain model from argument (domain).
        Parameters:
        domain - - the domain model for which searching related mapping model.
        Returns:
        the query for select first mapping model.
      • all

        public static <TRoot> IQuery<List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>,​TRoot> all​(Class<? extends TRoot> clazz,
                                                                                                                   Object domain)
        Creates an query for a choice all mapping model connected with the domain model from argument (domain).
        Parameters:
        clazz - - the class of root mapping model(IMappingRoot).
        domain - - the domain model for which searching related mapping models.
        Returns:
        the query for select all mapping model.