public class DefaultGenericDao<M extends ItemModel> extends Object implements GenericDao<M>
| Constructor and Description |
|---|
DefaultGenericDao(String typecode)
DefaultGenericDao is only usable when typecode is set.
|
| Modifier and Type | Method and Description |
|---|---|
List<M> |
find()
Searches for all instances of model given as a generic type.
|
List<M> |
find(Map<String,? extends Object> params)
Searches for all instances of model given as a generic type matching given parameters.
|
List<M> |
find(Map<String,? extends Object> params,
SortParameters sortParameters)
Searches for all instances of model given as a generic type matching given parameters using given
SortParameters to sort results. |
List<M> |
find(Map<String,? extends Object> params,
SortParameters sortParameters,
int count)
Searches for maximum of
count instances of model given as a generic type matching given parameters
using given SortParameters to sort results. |
List<M> |
find(SortParameters sortParameters)
Searches for all instances of model given as a generic type using given
SortParameters to sort results. |
protected FlexibleSearchService |
getFlexibleSearchService()
Accessor for a
FlexibleSearchService which might be helpful on higher levels of the class hierarchy. |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
public DefaultGenericDao(String typecode)
public List<M> find()
GenericDaofind in interface GenericDao<M extends ItemModel>public List<M> find(Map<String,? extends Object> params)
GenericDaofind in interface GenericDao<M extends ItemModel>params - parameters to add to search query as Map with parameter name as a key and parameter value as a
value.public List<M> find(SortParameters sortParameters)
GenericDaoSortParameters to sort results.find in interface GenericDao<M extends ItemModel>sortParameters - SortParameters object used to sort results.SortParameters.public List<M> find(Map<String,? extends Object> params, SortParameters sortParameters)
GenericDaoSortParameters to sort results.find in interface GenericDao<M extends ItemModel>params - parameters to add to search query as Map with parameter name as a key and parameter value as a
value.sortParameters - SortParameters object used to sort results.public List<M> find(Map<String,? extends Object> params, SortParameters sortParameters, int count)
GenericDaocount instances of model given as a generic type matching given parameters
using given SortParameters to sort results.find in interface GenericDao<M extends ItemModel>params - parameters to add to search query as Map with parameter name as a key and parameter value as a
value.sortParameters - SortParameters object used to sort results.public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected FlexibleSearchService getFlexibleSearchService()
FlexibleSearchService which might be helpful on higher levels of the class hierarchy.Copyright © 2017 SAP SE. All Rights Reserved.