Package de.hybris.platform.product.daos
Interface UnitDao
-
- All Superinterfaces:
Dao
- All Known Subinterfaces:
SAPUnitDao
- All Known Implementing Classes:
DefaultUnitDao,SAPDefaultUnitDao
public interface UnitDao extends Dao
TheUnitModelDAO.- Spring Bean ID:
- unitDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<UnitModel>findAllUnits()Returns all Units.java.util.Set<java.lang.String>findAllUnitTypes()Finds all unit types (e.g.java.util.Set<UnitModel>findUnitsByCode(java.lang.String code)java.util.Set<UnitModel>findUnitsByUnitType(java.lang.String unitType)Finds all units that match specific unit type
-
-
-
Method Detail
-
findUnitsByCode
java.util.Set<UnitModel> findUnitsByCode(java.lang.String code)
- Parameters:
code- theUnitModel.CODE- Returns:
- for the given
codetheUnitModel - Throws:
java.lang.IllegalArgumentException- ifcodeisnull.
-
findAllUnits
java.util.Set<UnitModel> findAllUnits()
Returns all Units.- Returns:
- a set containing all units.
-
findAllUnitTypes
java.util.Set<java.lang.String> findAllUnitTypes()
Finds all unit types (e.g. 'weight', 'size' ).- Returns:
- a set of type strings
-
findUnitsByUnitType
java.util.Set<UnitModel> findUnitsByUnitType(java.lang.String unitType)
Finds all units that match specific unit type- Parameters:
unitType- unit type- Returns:
- set of units that match unit type
-
-