Class DefaultModelDBUtilsService

java.lang.Object
de.hybris.platform.catalog.impl.DefaultModelDBUtilsService
All Implemented Interfaces:
ModelDBUtilsService

public class DefaultModelDBUtilsService extends Object implements ModelDBUtilsService
Default service DBUtils for Models
  • Constructor Details

    • DefaultModelDBUtilsService

      public DefaultModelDBUtilsService(TypeService typeService, ModelService modelService)
      Creates an instance of the service
      Parameters:
      typeService - - service for type system management
      modelService - - service for model management
  • Method Details

    • findColumnSize

      public long findColumnSize(String typeCode, String qualifier)
      Description copied from interface: ModelDBUtilsService
      Find the Column size for specified composed type code
      Specified by:
      findColumnSize in interface ModelDBUtilsService
      Parameters:
      typeCode - the code of the type to get attribute descriptor for
      qualifier - 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