Class DefaultTuaGenericService
java.lang.Object
de.hybris.platform.tuadatamodel.services.impl.DefaultTuaGenericService
- All Implemented Interfaces:
TuaGenericService
Default implementation of
TuaGenericService.- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTuaGenericService(de.hybris.platform.servicelayer.model.ModelService modelService, TuaGenericDao tuaGenericDao) -
Method Summary
Modifier and TypeMethodDescriptioncreateItem(Class itemClass) Creates a new item model of the given class.Retrieves an item model of a specific typeCode with the given idRetrieves an item model of a specific typeCode with the given parametersprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TuaGenericDaovoidSaves the given item model to the database.
-
Constructor Details
-
DefaultTuaGenericService
public DefaultTuaGenericService(de.hybris.platform.servicelayer.model.ModelService modelService, TuaGenericDao tuaGenericDao)
-
-
Method Details
-
getItem
Description copied from interface:TuaGenericServiceRetrieves an item model of a specific typeCode with the given id- Specified by:
getItemin interfaceTuaGenericService- Parameters:
typeCode- the typeCode of the modelid- the id- Returns:
- the model found, null otherwise
-
getItem
Description copied from interface:TuaGenericServiceRetrieves an item model of a specific typeCode with the given parameters- Specified by:
getItemin interfaceTuaGenericService- Parameters:
typeCode- the typeCode of the modelparams- the key-value pairs to filter the response- Returns:
- the item found
-
createItem
Description copied from interface:TuaGenericServiceCreates a new item model of the given class.- Specified by:
createItemin interfaceTuaGenericService- Parameters:
itemClass- the class of the item to be created.- Returns:
- the created item.
-
saveItem
Description copied from interface:TuaGenericServiceSaves the given item model to the database.- Specified by:
saveItemin interfaceTuaGenericService- Parameters:
item- the item model
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTuaGenericDao
-