@Component public class StudentService extends org.apache.click.extras.cayenne.CayenneTemplate
Constructor and Description |
---|
StudentService() |
Modifier and Type | Method and Description |
---|---|
Course |
getCourse(Object id) |
List<Course> |
getCourses() |
Student |
getStudent(Object id) |
StudentHouse |
getStudentHouse(Object id) |
List<StudentHouse> |
getStudentHouses() |
List<Student> |
getStudents() |
List<Student> |
getStudentsByHouse() |
void |
saveCourse(Course course) |
void |
saveStudent(Student student) |
void |
saveStudentHouse(StudentHouse studentHouse) |
void |
setStudentCourses(Student student,
List courseIds) |
commitChanges, createAndRegisterNewObject, deleteObject, findObject, getConnection, getDataContext, getObjectForPK, getObjectForPK, getPkName, newObject, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, performQuery, registerNewObject, rollbackChanges, toMap
public void saveStudent(Student student)
public void saveCourse(Course course)
public List<StudentHouse> getStudentHouses()
public StudentHouse getStudentHouse(Object id)
public void saveStudentHouse(StudentHouse studentHouse)