Пример #1
0
 def getAll(self, o_competition):
     """
     Get all Goals Object
     :return: list of Goals
     """
     rep = AbstractDAO._read(self, R_READALL, [o_competition.id])
     return self.__fetch_to_object(rep)
Пример #2
0
 def getById(self, id_goals):
     """
     Get Goals Object By it id
     :param id_goals: id of Goals Object
     :return: Goals Object
     """
     lparam = [id_goals]
     rep = AbstractDAO._read(self, R_READBYID, lparam)
     return self.__fetch_to_object(rep, True)
Пример #3
0
 def getByMatch(self, o_match):
     rep = AbstractDAO._read(self, R_READBYMATCH, [o_match.id])
     return self.__fetch_to_object(rep)
Пример #4
0
 def getNextMatch(self, o_competition):
     lparam = [o_competition.id]
     rep = AbstractDAO._read(self, R_NEXTMATCH, lparam)
     return self.__fetch_to_object(rep, True)
Пример #5
0
 def getMatchPlayed(self, o_competition):
     lparam = [o_competition.id]
     rep = AbstractDAO._read(self, R_MATCHPLAYED, lparam)
     return self.__fetch_to_object(rep)
Пример #6
0
 def getAll(self, o_competition):
     rep = AbstractDAO._read(self, R_READALL, [str(o_competition.id)])
     return self.__fetch_to_object(rep)
Пример #7
0
 def getById(self, id_match):
     lparam = [str(id_match)]
     rep = AbstractDAO._read(self, R_READBYID, lparam)
     return self.__fetch_to_object(rep, True)
Пример #8
0
 def getByName(self, str_team):
     lparam = [str_team]
     rep = AbstractDAO._read(self, R_READBYNAME, lparam)
     return self.__fetch_to_object(rep)
Пример #9
0
 def getAll(self):
     rep = AbstractDAO._read(self, R_READALL)
     return self.__fetch_to_object(rep)
Пример #10
0
 def getByName(self, oname):
     lparam = [oname]
     rep = AbstractDAO._read(self, R_READBYNAME, lparam)
     return self.__fetch_to_object(rep, True)