Interface ModelDBUtilsService

All Known Implementing Classes:
DefaultModelDBUtilsService

public interface ModelDBUtilsService
Service DBUtils for Models
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    findColumnSize(String typeCode, String qualifier)
    Find the Column size for specified composed type code
  • Method Details

    • findColumnSize

      long findColumnSize(String typeCode, String qualifier)
      Find the Column size for specified composed type code
      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
      Throws:
      IllegalArgumentException - when a qualifier has no corresponding column (e.g. is a relation side or is dynamic) or qualifier does not exist
      UnknownIdentifierException - when the type does not exist