public interface ModelSearchStrategy
ModelService.getByExample(Object).
ProductModel exampleProduct = new ProductModel();
exampleProduct.setCode("test");
ModelConverter converter = defaultModelService.getModelConverterByModel(exampleProduct);
ProductModel foundProduct = defaultItemModelSearchStrategy.getModelByExample(converter,exampleProduct);
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getModelByExample(ModelConverter conv,
T example)
Search for an existing model by a given (not saved) example model.
|
<T> List<T> |
getModelsByExample(ModelConverter conv,
T example)
Search for an existing models by a given (not saved) example model.
|
<T> T getModelByExample(ModelConverter conv, T example)
T - the type of the model and the type of the search result. Can be the same type or a subtype.example - the example modelconv - the model converterModelNotFoundException - if nothing was foundAmbiguousIdentifierException - if by the given searchparams to many models where found<T> List<T> getModelsByExample(ModelConverter conv, T example)
T - the type of the model and the type of the search result. Can be the same type or a subtype.example - the example modelconv - the model converterModelNotFoundException - if nothing was foundCopyright © 2017 SAP SE. All Rights Reserved.