Interface TuaGenericDao

All Known Implementing Classes:
DefaultTuaGenericDao

public interface TuaGenericDao
Data access object for ItemModel.
Since:
2208
  • Method Details

    • getItem

      ItemModel getItem(String typeCode, String id)
      Retrieves an item model of a specific typeCode with the given id
      Parameters:
      typeCode - the typeCode of the model
      id - the id
      Returns:
      the model found, null otherwise
    • getItem

      ItemModel getItem(String typeCode, Map<String,String> params)
      Retrieves an item model of a specific typeCode with the given parameters
      Parameters:
      typeCode - the typeCode of the model
      params - the key-value pairs to filter the response
      Returns:
      the model found, null otherwise
    • findItem

      ItemModel findItem(String typeCode, String id)
      Finds an item model of a specific typeCode with the given id
      Parameters:
      typeCode - the typeCode of the model
      id - the id
      Returns:
      the model found, otherwise throws ModelNotFoundException
    • findItem

      ItemModel findItem(String typeCode, Map<String,String> params)
      Finds an item model of a specific typeCode with the given parameters
      Parameters:
      typeCode - the typeCode of the model
      params - the key-value pairs to filter the response
      Returns:
      the model found, otherwise throws ModelNotFoundException