Skip navigation links
de.hybris.platform.servicelayer.internal.model

Interface ModelSearchStrategy

    • Method Detail

      • getModelByExample

        <T> T getModelByExample(ModelConverter conv,
                                T example)
        Search for an existing model by a given (not saved) example model. Every modified attribute in this example is used as search parameter.
        Type Parameters:
        T - the type of the model and the type of the search result. Can be the same type or a subtype.
        Parameters:
        example - the example model
        conv - the model converter
        Returns:
        the search result as object(model)
        Throws:
        ModelNotFoundException - if nothing was found
        AmbiguousIdentifierException - if by the given searchparams to many models where found
      • getModelsByExample

        <T> List<T> getModelsByExample(ModelConverter conv,
                                       T example)
        Search for an existing models by a given (not saved) example model. Every modified attribute in this example is used as search parameter.
        Type Parameters:
        T - the type of the model and the type of the search result. Can be the same type or a subtype.
        Parameters:
        example - the example model
        conv - the model converter
        Returns:
        list containing zero or more models
        Throws:
        ModelNotFoundException - if nothing was found

Copyright © 2017 SAP SE. All Rights Reserved.