Exemplo n.º 1
0
    def _mapped_class(self, table_name):
        """
        :param table_name: Name of the database table.
        :type table_name: str
        :return: The mapped class that corresponds to the given table name.
        :rtype: object
        """
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)
Exemplo n.º 2
0
    def _mapped_class(self, table_name):
        """
        :param table_name: Name of the database table.
        :type table_name: str
        :return: The mapped class that corresponds to the given table name.
        :rtype: object
        """
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)
Exemplo n.º 3
0
    def _get_mapped_class(self, table_name):
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)