Package de.hybris.platform.catalog.impl
Class DefaultModelDBUtilsService
java.lang.Object
de.hybris.platform.catalog.impl.DefaultModelDBUtilsService
- All Implemented Interfaces:
ModelDBUtilsService
Default service DBUtils for Models
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultModelDBUtilsService(TypeService typeService, ModelService modelService) Creates an instance of the service -
Method Summary
Modifier and TypeMethodDescriptionlongfindColumnSize(String typeCode, String qualifier) Find the Column size for specified composed type codevoidClears the column size cache
-
Constructor Details
-
DefaultModelDBUtilsService
Creates an instance of the service- Parameters:
typeService- - service for type system managementmodelService- - service for model management
-
-
Method Details
-
findColumnSize
Description copied from interface:ModelDBUtilsServiceFind the Column size for specified composed type code- Specified by:
findColumnSizein interfaceModelDBUtilsService- Parameters:
typeCode- the code of the type to get attribute descriptor forqualifier- the attribute qualifier- Returns:
- Size of Column
- for String Column type returns number of characters available
- for types with a specific size it returns that size, otherwise bytes
- 0 - when the column could not be retrieved, or due to some other error, probably a temporary one
-
resetCachedColumnSize
public void resetCachedColumnSize()Clears the column size cache
-