def find_by_id(self, key): return session.query(Student).get(key)
def delete(self, key): student = session.query(Student).get(key) session.delete(student)
def find_all(self): return session.query(Student).all()
def update(self, key, obj): student = session.query(Student).get(key) student.full_update(obj) session.commit()
def patch(self, key, field_name, value): student = session.query(Student).get(key) setattr(student, field_name, value) session.commit()
def find_all(self): return session.query(Group).all()
def find_by_id(self, key): return session.query(Group).get(key)
def patch(self, key, field_name, value): group = session.query(Group).get(key) setattr(group, field_name, value) session.commit()
def delete(self, key): group = session.query(Group).get(key) session.delete(group) session.commit()
def find_all(self): return session.query(self._domain_type).all()
def update(self, key, obj): group = session.query(Group).get(key) group.full_update(obj) session.commit()
def delete_all(self): session.query(self._domain_type).delete() session.commit()
def delete(self, key): domain_obj = session.query(self._domain_type).get(key) session.delete(domain_obj) session.commit()
def patch(self, key, field_name, value): domain_obj = session.query(self._domain_type).get(key) setattr(domain_obj, field_name, value) session.commit()
def update(self, key, obj): domain_obj = session.query(self._domain_type).get(key) domain_obj.full_update(obj) session.commit()
def find_by_id(self, key): return session.query(self._domain_type).get(key)