Class DefaultTuaGenericService

java.lang.Object
de.hybris.platform.tuadatamodel.services.impl.DefaultTuaGenericService
All Implemented Interfaces:
TuaGenericService

public class DefaultTuaGenericService extends Object implements TuaGenericService
Default implementation of TuaGenericService.
Since:
2208
  • Constructor Details

    • DefaultTuaGenericService

      public DefaultTuaGenericService(de.hybris.platform.servicelayer.model.ModelService modelService, TuaGenericDao tuaGenericDao)
  • Method Details

    • getItem

      public ItemModel getItem(String typeCode, String id)
      Description copied from interface: TuaGenericService
      Retrieves an item model of a specific typeCode with the given id
      Specified by:
      getItem in interface TuaGenericService
      Parameters:
      typeCode - the typeCode of the model
      id - the id
      Returns:
      the model found, null otherwise
    • getItem

      public ItemModel getItem(String typeCode, Map<String,String> params)
      Description copied from interface: TuaGenericService
      Retrieves an item model of a specific typeCode with the given parameters
      Specified by:
      getItem in interface TuaGenericService
      Parameters:
      typeCode - the typeCode of the model
      params - the key-value pairs to filter the response
      Returns:
      the item found
    • createItem

      public ItemModel createItem(Class itemClass)
      Description copied from interface: TuaGenericService
      Creates a new item model of the given class.
      Specified by:
      createItem in interface TuaGenericService
      Parameters:
      itemClass - the class of the item to be created.
      Returns:
      the created item.
    • saveItem

      public void saveItem(ItemModel item)
      Description copied from interface: TuaGenericService
      Saves the given item model to the database.
      Specified by:
      saveItem in interface TuaGenericService
      Parameters:
      item - the item model
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
    • getTuaGenericDao

      protected TuaGenericDao getTuaGenericDao()