public class CatalogMockDao extends java.lang.Object implements CatalogDao
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOESNOTEXIST |
static java.lang.String |
ONECATALOG |
static java.lang.String |
TWOCATALOGS |
| Constructor and Description |
|---|
CatalogMockDao() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CatalogModel> |
find()
Searches for all instances of model given as a generic type.
|
java.util.List<CatalogModel> |
find(java.util.Map<java.lang.String,? extends java.lang.Object> params)
Searches for all instances of model given as a generic type matching given parameters.
|
java.util.List<CatalogModel> |
find(java.util.Map<java.lang.String,? extends java.lang.Object> params,
SortParameters sortParameters)
Searches for all instances of model given as a generic type matching given parameters using given
SortParameters to sort results. |
java.util.List<CatalogModel> |
find(java.util.Map<java.lang.String,? extends java.lang.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. |
java.util.List<CatalogModel> |
find(SortParameters sortParameters)
Searches for all instances of model given as a generic type using given
SortParameters to sort results. |
java.util.Collection<CatalogModel> |
findAllCatalogs()
Return all
CatalogModels sorted in ascending order by CatalogModel.ID. |
CatalogModel |
findCatalogById(java.lang.String id)
Returns
CatalogModel with the given id. |
java.util.Collection<CatalogModel> |
findDefaultCatalogs()
Returns a collection of
CatalogModels with the current default CatalogModel of the system (one
element). |
public static final java.lang.String DOESNOTEXIST
public static final java.lang.String ONECATALOG
public static final java.lang.String TWOCATALOGS
public java.util.Collection<CatalogModel> findAllCatalogs()
CatalogDaoCatalogModels sorted in ascending order by CatalogModel.ID.findAllCatalogs in interface CatalogDaoCollection of CatalogModels or empty collection.public CatalogModel findCatalogById(java.lang.String id)
CatalogDaoCatalogModel with the given id.findCatalogById in interface CatalogDaoid - catalog idCatalogModelpublic java.util.List<CatalogModel> find()
GenericDaofind in interface GenericDao<CatalogModel>public java.util.List<CatalogModel> find(java.util.Map<java.lang.String,? extends java.lang.Object> params)
GenericDaofind in interface GenericDao<CatalogModel>params - parameters to add to search query as Map with parameter name as a key and parameter value as a
value.public java.util.List<CatalogModel> find(SortParameters sortParameters)
GenericDaoSortParameters to sort results.find in interface GenericDao<CatalogModel>sortParameters - SortParameters object used to sort results.SortParameters.public java.util.List<CatalogModel> find(java.util.Map<java.lang.String,? extends java.lang.Object> params, SortParameters sortParameters)
GenericDaoSortParameters to sort results.find in interface GenericDao<CatalogModel>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 java.util.List<CatalogModel> find(java.util.Map<java.lang.String,? extends java.lang.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<CatalogModel>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 java.util.Collection<CatalogModel> findDefaultCatalogs()
CatalogDaoCatalogModels with the current default CatalogModel of the system (one
element).findDefaultCatalogs in interface CatalogDaoCopyright © 2018 SAP SE. All Rights Reserved.