code: def hierarchyLookup(self, record):
          
          def _get_lookup(cls):
              if cls in self._hierarchyLookup:
                  return self._hierarchyLookup[cls]
              
              for base in cls.__bases__:
                  results = _get_lookup(base)
                  if results:
                      return results
              
              return (None, None)
          
          tableType, column = _get_lookup(type(record))
          
          if tableType and column:
              return (tableType, column)
          
          default = self._hierarchyLookup.get(None)
          if default:
              return default
          return (None, None)
docs: Looks up additional hierarchy information for the inputed record.
          
          :param      record | <orb.Table>
          
          :return     (<subclass of orb.Table> || None, <str> column)