@classmethod
def buildModelName(cls, parent_model, relative_name):
    """build an 'absolute' model name from the parent model and the
        'relative' name.
        - If parent_model is a TaurusDevice, the return is a composition of
        the database model name and its device name
        - If parent_model is a TaurusAttribute, the relative name is ignored and
        the parent name is returned

        Note: This is a basic implementation. You may need to reimplement this
              for a specific scheme if it supports "useParentModel".
        """
    if parent_model is None:
        return relative_name
    parent_name = parent_model.getFullName()
    if not parent_name:
        return relative_name
    if isinstance(parent_model, cls):
        return parent_name
    return '%s%s' % (parent_name, relative_name)
