Package de.hybris.platform.product.daos
Interface UnitDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultUnitDao
The
UnitModel DAO.- Spring Bean ID:
- unitDao
-
Method Summary
Modifier and TypeMethodDescriptionReturns all Units.Finds all unit types (e.g.findUnitsByCode(String code) findUnitsByUnitType(String unitType) Finds all units that match specific unit type
-
Method Details
-
findUnitsByCode
- Parameters:
code- theUnitModel.CODE- Returns:
- for the given
codetheUnitModel - Throws:
IllegalArgumentException- ifcodeisnull.
-
findAllUnits
Returns all Units.- Returns:
- a set containing all units.
-
findAllUnitTypes
Finds all unit types (e.g. 'weight', 'size' ).- Returns:
- a set of type strings
-
findUnitsByUnitType
Finds all units that match specific unit type- Parameters:
unitType- unit type- Returns:
- set of units that match unit type
-