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)
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)
def getByMatch(self, o_match): rep = AbstractDAO._read(self, R_READBYMATCH, [o_match.id]) return self.__fetch_to_object(rep)
def getNextMatch(self, o_competition): lparam = [o_competition.id] rep = AbstractDAO._read(self, R_NEXTMATCH, lparam) return self.__fetch_to_object(rep, True)
def getMatchPlayed(self, o_competition): lparam = [o_competition.id] rep = AbstractDAO._read(self, R_MATCHPLAYED, lparam) return self.__fetch_to_object(rep)
def getAll(self, o_competition): rep = AbstractDAO._read(self, R_READALL, [str(o_competition.id)]) return self.__fetch_to_object(rep)
def getById(self, id_match): lparam = [str(id_match)] rep = AbstractDAO._read(self, R_READBYID, lparam) return self.__fetch_to_object(rep, True)
def getByName(self, str_team): lparam = [str_team] rep = AbstractDAO._read(self, R_READBYNAME, lparam) return self.__fetch_to_object(rep)
def getAll(self): rep = AbstractDAO._read(self, R_READALL) return self.__fetch_to_object(rep)
def getByName(self, oname): lparam = [oname] rep = AbstractDAO._read(self, R_READBYNAME, lparam) return self.__fetch_to_object(rep, True)