def getLockStatsMode(self):
info_dict = {'<STR_LIT:all>': dict(zip(self.lockModes, (<NUM_LIT:0>,) * len(self.lockModes))),<EOL>'<STR_LIT>': dict(zip(self.lockModes, (<NUM_LIT:0>,) * len(self.lockModes)))}<EOL>cur = self._conn.cursor()<EOL>cur.execute("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>rows = cur.fetchall()<EOL>for (mode, granted, cnt) in rows:<EOL><INDENT>info_dict['<STR_LIT:all>'][mode] += cnt<EOL>if not granted:<EOL><INDENT>info_dict['<STR_LIT>'][mode] += cnt<EOL><DEDENT><DEDENT>return info_dict<EOL>
Returns the number of active lock discriminated by lock mode.

        @return: : Dictionary of stats.