Class DefaultTravelBackofficeGenericDao<M extends ItemModel>

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<M>
de.hybris.platform.travelbackofficeservices.dao.impl.DefaultTravelBackofficeGenericDao<M>
All Implemented Interfaces:
de.hybris.platform.servicelayer.internal.dao.GenericDao<M>, TravelBackofficeGenericDao

public class DefaultTravelBackofficeGenericDao<M extends ItemModel> extends de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<M> implements TravelBackofficeGenericDao
Default implementation of TravelBackofficeGenericDao
  • Constructor Details

    • DefaultTravelBackofficeGenericDao

      public DefaultTravelBackofficeGenericDao(String typecode)
  • Method Details

    • getModelForAttribute

      public Object getModelForAttribute(Map<String,Object> attributes, String typeCode) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException, de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException
      Description copied from interface: TravelBackofficeGenericDao
      This method retrieves the list of objects for the specified attributes and typeCode. Attributes is a Map<String, Object> where the key is the name of the attributes and the value is the value of that attribute.
      Specified by:
      getModelForAttribute in interface TravelBackofficeGenericDao
      Parameters:
      attributes - the map of the name of the attribute and the value
      typeCode - the typeCode
      Returns:
      the object
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - if no items are found
      de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException - if more than one item is found