SYMBOL INDEX (572 symbols across 72 files) FILE: chapter01/src/main/java/com/mybatis3/domain/Student.java class Student (line 10) | public class Student method Student (line 17) | public Student() { method Student (line 21) | public Student(Integer studId) { method Student (line 25) | public Student(Integer studId, String name, String email, Date dob) { method toString (line 32) | @Override method getStudId (line 38) | public Integer getStudId() { method setStudId (line 41) | public void setStudId(Integer studId) { method getName (line 44) | public String getName() { method setName (line 47) | public void setName(String name) { method getEmail (line 50) | public String getEmail() { method setEmail (line 53) | public void setEmail(String email) { method getDob (line 56) | public Date getDob() { method setDob (line 59) | public void setDob(Date dob) { FILE: chapter01/src/main/java/com/mybatis3/mappers/StudentMapper.java type StudentMapper (line 12) | public interface StudentMapper method findAllStudents (line 15) | List findAllStudents(); method findStudentById (line 17) | Student findStudentById(Integer id); method insertStudent (line 19) | void insertStudent(Student student); method updateStudent (line 21) | void updateStudent(Student student); FILE: chapter01/src/main/java/com/mybatis3/services/JdbcStudentService.java class JdbcStudentService (line 18) | public class JdbcStudentService method main (line 26) | public static void main(String[] args) method findStudentById (line 48) | public Student findStudentById(int studId) method createStudent (line 83) | public void createStudent(Student student) method updateStudent (line 111) | public void updateStudent(Student student) method getDatabaseConnection (line 140) | protected Connection getDatabaseConnection() throws SQLException FILE: chapter01/src/main/java/com/mybatis3/services/StudentService.java class StudentService (line 18) | public class StudentService method findAllStudents (line 22) | public List findAllStudents() method findStudentById (line 33) | public Student findStudentById(Integer studId) method createStudent (line 46) | public void createStudent(Student student) method updateStudent (line 58) | public void updateStudent(Student student) FILE: chapter01/src/main/java/com/mybatis3/util/MyBatisSqlSessionFactory.java class MyBatisSqlSessionFactory (line 19) | public class MyBatisSqlSessionFactory method getSqlSessionFactory (line 35) | public static SqlSessionFactory getSqlSessionFactory() method getSqlSession (line 59) | public static SqlSession getSqlSession() method getConnection (line 64) | public static Connection getConnection() FILE: chapter01/src/main/resources/sql/create_tables.sql type ADDRESSES (line 2) | CREATE TABLE ADDRESSES type STUDENTS (line 13) | CREATE TABLE STUDENTS type TUTORS (line 27) | CREATE TABLE TUTORS type COURSES (line 42) | CREATE TABLE COURSES type COURSE_ENROLLMENT (line 55) | CREATE TABLE COURSE_ENROLLMENT type USER_PICS (line 66) | CREATE TABLE USER_PICS FILE: chapter01/src/test/java/com/mybatis3/services/StudentServiceTest.java class StudentServiceTest (line 19) | public class StudentServiceTest method setup (line 23) | @BeforeClass method teardown (line 29) | @AfterClass method testFindAllStudents (line 35) | @Test method testFindStudentById (line 48) | @Test method testCreateUStudent (line 55) | @Test method testUpdateStudent (line 71) | @Test FILE: chapter01/src/test/java/com/mybatis3/services/TestDataPopulator.java class TestDataPopulator (line 20) | public class TestDataPopulator method main (line 24) | public static void main(String[] args) { method initDatabase (line 28) | public static void initDatabase() FILE: chapter02/src/main/java/com/mybatis3/domain/PhoneNumber.java class PhoneNumber (line 11) | public class PhoneNumber method PhoneNumber (line 17) | public PhoneNumber() { method PhoneNumber (line 20) | public PhoneNumber(String countryCode, String stateCode, String number) { method PhoneNumber (line 27) | public PhoneNumber(String string) { method toString (line 37) | @Override method getCountryCode (line 42) | public String getCountryCode() { method setCountryCode (line 46) | public void setCountryCode(String countryCode) { method getStateCode (line 50) | public String getStateCode() { method setStateCode (line 54) | public void setStateCode(String stateCode) { method getNumber (line 58) | public String getNumber() { method setNumber (line 62) | public void setNumber(String number) { method getAsString (line 66) | public String getAsString() { FILE: chapter02/src/main/java/com/mybatis3/domain/Student.java class Student (line 12) | @Alias("Student") method Student (line 20) | public Student() { method Student (line 24) | public Student(Integer studId) { method Student (line 28) | public Student(Integer studId, String name, String email, Date dob) { method toString (line 35) | @Override method getStudId (line 41) | public Integer getStudId() { method setStudId (line 44) | public void setStudId(Integer studId) { method getName (line 47) | public String getName() { method setName (line 50) | public void setName(String name) { method getEmail (line 53) | public String getEmail() { method setEmail (line 56) | public void setEmail(String email) { method getDob (line 59) | public Date getDob() { method setDob (line 62) | public void setDob(Date dob) { FILE: chapter02/src/main/java/com/mybatis3/mappers/StudentMapper.java type StudentMapper (line 12) | public interface StudentMapper method findAllStudents (line 15) | List findAllStudents(); method findStudentById (line 17) | Student findStudentById(Integer id); method insertStudent (line 19) | void insertStudent(Student student); method updateStudent (line 21) | void updateStudent(Student student); FILE: chapter02/src/main/java/com/mybatis3/services/StudentService.java class StudentService (line 14) | public class StudentService method StudentService (line 19) | public StudentService(SqlSessionFactory factory) { method openSqlSession (line 23) | protected SqlSession openSqlSession() method findAllStudents (line 27) | public List findAllStudents() method findStudentById (line 39) | public Student findStudentById(Integer studId) method createStudent (line 51) | public Student createStudent(Student student) method updateStudent (line 64) | public void updateStudent(Student student) FILE: chapter02/src/main/java/com/mybatis3/typehandlers/PhoneTypeHandler.java class PhoneTypeHandler (line 21) | public class PhoneTypeHandler extends BaseTypeHandler{ method setNonNullParameter (line 23) | @Override method getNullableResult (line 29) | @Override method getNullableResult (line 35) | @Override method getNullableResult (line 41) | @Override FILE: chapter02/src/main/java/com/mybatis3/util/DataSourceFactory.java class DataSourceFactory (line 20) | public class DataSourceFactory method getDataSource (line 34) | public static DataSource getDataSource() method getJNDIDataSource (line 44) | public static DataSource getJNDIDataSource() FILE: chapter02/src/main/java/com/mybatis3/util/MyBatisUtil.java class MyBatisUtil (line 25) | public class MyBatisUtil method getSqlSessionFactoryUsingXML (line 30) | public static SqlSessionFactory getSqlSessionFactoryUsingXML() method getSqlSessionFactoryUsingJavaAPI (line 47) | public static SqlSessionFactory getSqlSessionFactoryUsingJavaAPI() FILE: chapter02/src/main/resources/sql/create_tables.sql type ADDRESSES (line 2) | CREATE TABLE ADDRESSES type STUDENTS (line 13) | CREATE TABLE STUDENTS type TUTORS (line 27) | CREATE TABLE TUTORS type COURSES (line 42) | CREATE TABLE COURSES type COURSE_ENROLLMENT (line 55) | CREATE TABLE COURSE_ENROLLMENT type USER_PICS (line 66) | CREATE TABLE USER_PICS FILE: chapter02/src/test/java/com/mybatis3/services/StudentServiceTest.java class StudentServiceTest (line 17) | public class StudentServiceTest method setup (line 21) | @BeforeClass method teardown (line 35) | @AfterClass method testFindAllStudents (line 41) | @Test method testFindStudentById (line 54) | @Test method testCreateUStudent (line 61) | @Test method testUpdateStudent (line 76) | @Test FILE: chapter02/src/test/java/com/mybatis3/services/TestDataPopulator.java class TestDataPopulator (line 21) | public class TestDataPopulator method main (line 25) | public static void main(String[] args) { method initDatabase (line 29) | public static void initDatabase() FILE: chapter03/src/main/java/com/mybatis3/domain/Address.java class Address (line 9) | public class Address implements Serializable method toString (line 20) | @Override method Address (line 26) | public Address() method Address (line 29) | public Address(Integer addrId) method Address (line 33) | public Address(Integer addrId, String street, String city, String state, method getAddrId (line 43) | public Integer getAddrId() { method setAddrId (line 46) | public void setAddrId(Integer addrId) { method getStreet (line 49) | public String getStreet() method setStreet (line 53) | public void setStreet(String street) method getCity (line 57) | public String getCity() method setCity (line 61) | public void setCity(String city) method getState (line 65) | public String getState() method setState (line 69) | public void setState(String state) method getZip (line 73) | public String getZip() method setZip (line 77) | public void setZip(String zip) method getCountry (line 81) | public String getCountry() method setCountry (line 85) | public void setCountry(String country) FILE: chapter03/src/main/java/com/mybatis3/domain/Course.java class Course (line 12) | public class Course implements Serializable method toString (line 24) | @Override method getCourseId (line 30) | public Integer getCourseId() method setCourseId (line 34) | public void setCourseId(Integer id) method getName (line 38) | public String getName() method setName (line 42) | public void setName(String name) method getDescription (line 46) | public String getDescription() method setDescription (line 50) | public void setDescription(String description) method getStartDate (line 54) | public Date getStartDate() method setStartDate (line 58) | public void setStartDate(Date startDate) method getEndDate (line 62) | public Date getEndDate() method setEndDate (line 66) | public void setEndDate(Date endDate) method getStudents (line 70) | public List getStudents() method setStudents (line 77) | public void setStudents(List students) method getTutor (line 81) | public Tutor getTutor() { method setTutor (line 84) | public void setTutor(Tutor tutor) { FILE: chapter03/src/main/java/com/mybatis3/domain/PhoneNumber.java class PhoneNumber (line 13) | public class PhoneNumber implements Serializable method PhoneNumber (line 21) | public PhoneNumber() { method PhoneNumber (line 24) | public PhoneNumber(String countryCode, String stateCode, String number) { method PhoneNumber (line 31) | public PhoneNumber(String string) { method getCountryCode (line 46) | public String getCountryCode() { method setCountryCode (line 50) | public void setCountryCode(String countryCode) { method getStateCode (line 54) | public String getStateCode() { method setStateCode (line 58) | public void setStateCode(String stateCode) { method getNumber (line 62) | public String getNumber() { method setNumber (line 66) | public void setNumber(String number) { method getAsString (line 70) | public String getAsString() { FILE: chapter03/src/main/java/com/mybatis3/domain/Student.java class Student (line 10) | public class Student implements Serializable method toString (line 19) | @Override method Student (line 24) | public Student() method Student (line 27) | public Student(Integer id) method getStudId (line 31) | public Integer getStudId() method setStudId (line 35) | public void setStudId(Integer id) method getName (line 39) | public String getName() method setName (line 43) | public void setName(String name) method getEmail (line 47) | public String getEmail() method setEmail (line 51) | public void setEmail(String email) method getAddress (line 55) | public Address getAddress() { method setAddress (line 58) | public void setAddress(Address address) { method getPhone (line 61) | public PhoneNumber getPhone() { method setPhone (line 64) | public void setPhone(PhoneNumber phone) { FILE: chapter03/src/main/java/com/mybatis3/domain/Tutor.java class Tutor (line 10) | public class Tutor implements Serializable method toString (line 20) | @Override method Tutor (line 25) | public Tutor() method Tutor (line 28) | public Tutor(Integer id) method getTutorId (line 32) | public Integer getTutorId() method setTutorId (line 36) | public void setTutorId(Integer id) method getName (line 40) | public String getName() method setName (line 44) | public void setName(String name) method getEmail (line 48) | public String getEmail() method setEmail (line 52) | public void setEmail(String email) method getAddress (line 56) | public Address getAddress() method setAddress (line 60) | public void setAddress(Address address) method getCourses (line 64) | public List getCourses() { method setCourses (line 67) | public void setCourses(List courses) { FILE: chapter03/src/main/java/com/mybatis3/mappers/AddressMapper.java type AddressMapper (line 11) | public interface AddressMapper method findAddressById (line 13) | Address findAddressById(Integer id); FILE: chapter03/src/main/java/com/mybatis3/mappers/CourseMapper.java type CourseMapper (line 14) | public interface CourseMapper method selectCoursesByTutor (line 17) | List selectCoursesByTutor(int tutorId); method searchCourses (line 19) | List searchCourses(Map map); method searchCoursesByTutors (line 21) | List searchCoursesByTutors(Map map); FILE: chapter03/src/main/java/com/mybatis3/mappers/StudentMapper.java type StudentMapper (line 14) | public interface StudentMapper method findAllStudents (line 17) | List findAllStudents(); method findStudentById (line 19) | Student findStudentById(Integer id); method selectStudentWithAddress (line 21) | Student selectStudentWithAddress(int id); method insertStudent (line 23) | void insertStudent(Student student); method insertStudentWithMap (line 25) | void insertStudentWithMap(Map map); method updateStudent (line 27) | void updateStudent(Student student); method deleteStudent (line 29) | int deleteStudent(int id); FILE: chapter03/src/main/java/com/mybatis3/mappers/TutorMapper.java type TutorMapper (line 11) | public interface TutorMapper method selectTutorWithCourses (line 14) | Tutor selectTutorWithCourses(int tutorId); method selectTutorById (line 16) | Tutor selectTutorById(int tutorId); FILE: chapter03/src/main/java/com/mybatis3/services/CourseService.java class CourseService (line 15) | public class CourseService method searchCourses (line 19) | public List searchCourses(Map map) method searchCoursesByTutors (line 33) | public List searchCoursesByTutors(Map map) { FILE: chapter03/src/main/java/com/mybatis3/services/StudentService.java class StudentService (line 13) | public class StudentService method findAllStudents (line 16) | public List findAllStudents() method findStudentById (line 27) | public Student findStudentById(Integer id) method findStudentWithAddressById (line 38) | public Student findStudentWithAddressById(int id) { method createStudent (line 48) | public Student createStudent(Student student) { method createStudentWithMap (line 66) | public void createStudentWithMap(Map studentDataMap) { method updateStudent (line 83) | public Student updateStudent(Student student) { method deleteStudent (line 101) | public boolean deleteStudent(int id) { FILE: chapter03/src/main/java/com/mybatis3/services/TutorService.java class TutorService (line 12) | public class TutorService method findTutorById (line 17) | public Tutor findTutorById(int tutorId) { FILE: chapter03/src/main/java/com/mybatis3/typehandlers/PhoneTypeHandler.java class PhoneTypeHandler (line 21) | public class PhoneTypeHandler extends BaseTypeHandler{ method setNonNullParameter (line 23) | @Override method getNullableResult (line 29) | @Override method getNullableResult (line 35) | @Override method getNullableResult (line 41) | @Override FILE: chapter03/src/main/java/com/mybatis3/util/MyBatisUtil.java class MyBatisUtil (line 18) | public class MyBatisUtil method getSqlSessionFactory (line 34) | public static SqlSessionFactory getSqlSessionFactory() method getConnection (line 51) | public static Connection getConnection() FILE: chapter03/src/main/resources/sql/create_tables.sql type ADDRESSES (line 2) | CREATE TABLE ADDRESSES type STUDENTS (line 13) | CREATE TABLE STUDENTS type TUTORS (line 29) | CREATE TABLE TUTORS type COURSES (line 46) | CREATE TABLE COURSES type COURSE_ENROLLMENT (line 59) | CREATE TABLE COURSE_ENROLLMENT FILE: chapter03/src/test/java/com/mybatis3/services/CourseServiceTest.java class CourseServiceTest (line 16) | public class CourseServiceTest method setup (line 20) | @BeforeClass method teardown (line 27) | @AfterClass method searchCourses (line 33) | @Test method searchCoursesByTutors (line 48) | @Test FILE: chapter03/src/test/java/com/mybatis3/services/StudentServiceTest.java class StudentServiceTest (line 18) | public class StudentServiceTest method setup (line 22) | @BeforeClass method teardown (line 29) | @AfterClass method testFindAllStudents (line 35) | @Test method testFindStudentById (line 48) | @Test method testFindStudentWithAddressById (line 56) | @Test method testCreateStudent (line 64) | @Test method testCreateStudentWithMap (line 80) | @Test method testUpdateStudent (line 91) | @Test method testDeleteStudent (line 106) | @Test FILE: chapter03/src/test/java/com/mybatis3/services/TestDataPopulator.java class TestDataPopulator (line 21) | public class TestDataPopulator method main (line 25) | public static void main(String[] args) { method initDatabase (line 29) | public static void initDatabase() FILE: chapter03/src/test/java/com/mybatis3/services/TutorServiceTest.java class TutorServiceTest (line 15) | public class TutorServiceTest method setup (line 19) | @BeforeClass method teardown (line 26) | @AfterClass method testFindTutorById (line 33) | @Test FILE: chapter04/src/main/java/com/mybatis3/domain/Address.java class Address (line 9) | public class Address implements Serializable method toString (line 20) | @Override method Address (line 26) | public Address() method Address (line 29) | public Address(Integer addrId) method Address (line 33) | public Address(Integer addrId, String street, String city, String state, method getAddrId (line 43) | public Integer getAddrId() { method setAddrId (line 46) | public void setAddrId(Integer addrId) { method getStreet (line 49) | public String getStreet() method setStreet (line 53) | public void setStreet(String street) method getCity (line 57) | public String getCity() method setCity (line 61) | public void setCity(String city) method getState (line 65) | public String getState() method setState (line 69) | public void setState(String state) method getZip (line 73) | public String getZip() method setZip (line 77) | public void setZip(String zip) method getCountry (line 81) | public String getCountry() method setCountry (line 85) | public void setCountry(String country) FILE: chapter04/src/main/java/com/mybatis3/domain/Course.java class Course (line 12) | public class Course implements Serializable method toString (line 24) | @Override method getCourseId (line 30) | public Integer getCourseId() method setCourseId (line 34) | public void setCourseId(Integer id) method getName (line 38) | public String getName() method setName (line 42) | public void setName(String name) method getDescription (line 46) | public String getDescription() method setDescription (line 50) | public void setDescription(String description) method getStartDate (line 54) | public Date getStartDate() method setStartDate (line 58) | public void setStartDate(Date startDate) method getEndDate (line 62) | public Date getEndDate() method setEndDate (line 66) | public void setEndDate(Date endDate) method getStudents (line 70) | public List getStudents() method setStudents (line 77) | public void setStudents(List students) method getTutor (line 81) | public Tutor getTutor() { method setTutor (line 84) | public void setTutor(Tutor tutor) { FILE: chapter04/src/main/java/com/mybatis3/domain/PhoneNumber.java class PhoneNumber (line 13) | public class PhoneNumber implements Serializable method PhoneNumber (line 21) | public PhoneNumber() { method PhoneNumber (line 24) | public PhoneNumber(String countryCode, String stateCode, String number) { method PhoneNumber (line 31) | public PhoneNumber(String string) { method getCountryCode (line 46) | public String getCountryCode() { method setCountryCode (line 50) | public void setCountryCode(String countryCode) { method getStateCode (line 54) | public String getStateCode() { method setStateCode (line 58) | public void setStateCode(String stateCode) { method getNumber (line 62) | public String getNumber() { method setNumber (line 66) | public void setNumber(String number) { method getAsString (line 70) | public String getAsString() { FILE: chapter04/src/main/java/com/mybatis3/domain/Student.java class Student (line 10) | public class Student implements Serializable method toString (line 19) | @Override method Student (line 24) | public Student() method Student (line 27) | public Student(Integer id) method getStudId (line 31) | public Integer getStudId() method setStudId (line 35) | public void setStudId(Integer id) method getName (line 39) | public String getName() method setName (line 43) | public void setName(String name) method getEmail (line 47) | public String getEmail() method setEmail (line 51) | public void setEmail(String email) method getAddress (line 55) | public Address getAddress() { method setAddress (line 58) | public void setAddress(Address address) { method getPhone (line 61) | public PhoneNumber getPhone() { method setPhone (line 64) | public void setPhone(PhoneNumber phone) { FILE: chapter04/src/main/java/com/mybatis3/domain/Tutor.java class Tutor (line 10) | public class Tutor implements Serializable method toString (line 20) | @Override method Tutor (line 25) | public Tutor() method Tutor (line 28) | public Tutor(Integer id) method getTutorId (line 32) | public Integer getTutorId() method setTutorId (line 36) | public void setTutorId(Integer id) method getName (line 40) | public String getName() method setName (line 44) | public void setName(String name) method getEmail (line 48) | public String getEmail() method setEmail (line 52) | public void setEmail(String email) method getAddress (line 56) | public Address getAddress() method setAddress (line 60) | public void setAddress(Address address) method getCourses (line 64) | public List getCourses() { method setCourses (line 67) | public void setCourses(List courses) { FILE: chapter04/src/main/java/com/mybatis3/mappers/AddressMapper.java type AddressMapper (line 14) | public interface AddressMapper method selectAddressById (line 16) | @Select("select addr_id as addrId, street, city, state, zip, country f... FILE: chapter04/src/main/java/com/mybatis3/mappers/StudentMapper.java type StudentMapper (line 23) | public interface StudentMapper method findAllStudents (line 26) | @Select("select * from students") method findAllStudentsMap (line 35) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method findStudentById (line 38) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method findStudentMapById (line 41) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method selectStudentWithAddress (line 44) | @Select("select stud_id, name, email, a.addr_id, street, city, state, ... method insertStudent (line 50) | @Insert("insert into students(name,email,addr_id, phone) values(#{name... method insertStudentWithMap (line 54) | @Insert("insert into students(name,email,addr_id, phone) values(#{name... method updateStudent (line 58) | @Update("update students set name=#{name}, email=#{email}, phone=#{pho... method deleteStudent (line 61) | @Delete("delete from students where stud_id=#{studId}") FILE: chapter04/src/main/java/com/mybatis3/mappers/TutorMapper.java type TutorMapper (line 31) | public interface TutorMapper method selectCoursesByTutorId (line 34) | @Select("select * from courses where tutor_id=#{tutorId}") method selectTutorWithCoursesById (line 38) | @Select("SELECT tutor_id, t.name as tutor_name, email, addr_id FROM tu... method findAllTutors (line 50) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findAllTutors... method findTutorById (line 53) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findTutorById... method findTutorByNameAndEmail (line 56) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findTutorByNa... method insertTutor (line 59) | @InsertProvider(type=TutorDynaSqlProvider.class, method="insertTutor") method updateTutor (line 63) | @UpdateProvider(type=TutorDynaSqlProvider.class, method="updateTutor") method deleteTutor (line 66) | @DeleteProvider(type=TutorDynaSqlProvider.class, method="deleteTutor") method selectTutorById (line 69) | @SelectProvider(type=TutorDynaSqlProvider.class, method="selectTutorBy... FILE: chapter04/src/main/java/com/mybatis3/services/StudentService.java class StudentService (line 14) | public class StudentService method findAllStudents (line 18) | public List findAllStudents() method findStudentById (line 29) | public Student findStudentById(Integer id) method findStudentWithAddressById (line 41) | public Student findStudentWithAddressById(int id) { method createStudent (line 51) | public Student createStudent(Student student) { method createStudentWithMap (line 69) | public void createStudentWithMap(Map studentDataMap) { method updateStudent (line 86) | public Student updateStudent(Student student) { method deleteStudent (line 104) | public boolean deleteStudent(int id) { method findStudentMapById (line 122) | public Map findStudentMapById(int id) { method findAllStudentsMap (line 134) | public List> findAllStudentsMap() { FILE: chapter04/src/main/java/com/mybatis3/services/TutorService.java class TutorService (line 20) | public class TutorService method findAllTutors (line 22) | public List findAllTutors() method findTutorById (line 33) | public Tutor findTutorById(int tutorId) method findTutorByNameAndEmail (line 44) | public Tutor findTutorByNameAndEmail(String name, String email) method createTutor (line 55) | public Tutor createTutor(Tutor tutor) method updateTutor (line 68) | public Tutor updateTutor(Tutor tutor) method deleteTutor (line 81) | public boolean deleteTutor(int tutorId) method selectTutorById (line 96) | public Tutor selectTutorById(int tutorId) method selectTutorWithCoursesById (line 107) | public Tutor selectTutorWithCoursesById(int tutorId) { FILE: chapter04/src/main/java/com/mybatis3/sqlproviders/TutorDynaSqlProvider.java class TutorDynaSqlProvider (line 16) | public class TutorDynaSqlProvider method findAllTutorsSql (line 19) | public String findAllTutorsSql() method findTutorByIdSql (line 27) | public String findTutorByIdSql(final int tutorId) method findTutorByNameAndEmailSql (line 43) | public String findTutorByNameAndEmailSql(Map map) method insertTutor (line 56) | public String insertTutor(final Tutor tutor) { method updateTutor (line 72) | public String updateTutor(final Tutor tutor) method deleteTutor (line 89) | public String deleteTutor(int tutorId) method selectTutorById (line 99) | public String selectTutorById() FILE: chapter04/src/main/java/com/mybatis3/typehandlers/PhoneTypeHandler.java class PhoneTypeHandler (line 21) | public class PhoneTypeHandler extends BaseTypeHandler{ method setNonNullParameter (line 23) | @Override method getNullableResult (line 29) | @Override method getNullableResult (line 35) | @Override method getNullableResult (line 41) | @Override FILE: chapter04/src/main/java/com/mybatis3/util/MyBatisUtil.java class MyBatisUtil (line 18) | public class MyBatisUtil method getConnection (line 34) | public static Connection getConnection() method getSqlSessionFactory (line 50) | public static SqlSessionFactory getSqlSessionFactory() FILE: chapter04/src/main/resources/sql/create_tables.sql type ADDRESSES (line 2) | CREATE TABLE ADDRESSES type STUDENTS (line 13) | CREATE TABLE STUDENTS type TUTORS (line 29) | CREATE TABLE TUTORS type COURSES (line 46) | CREATE TABLE COURSES type COURSE_ENROLLMENT (line 59) | CREATE TABLE COURSE_ENROLLMENT FILE: chapter04/src/test/java/com/mybatis3/services/StudentServiceTest.java class StudentServiceTest (line 16) | public class StudentServiceTest method setup (line 21) | @BeforeClass method teardown (line 27) | @AfterClass method testFindAllStudents (line 32) | @Test method testFindStudentById (line 42) | @Test method testFindStudentWithAddressById (line 50) | @Test method testCreateStudent (line 57) | @Test method testCreateStudentWithMap (line 71) | @Test method testUpdateStudent (line 81) | @Test method testDeleteStudent (line 97) | @Test method testFindStudentMapById (line 104) | @Test method testFindAllStudentsMap (line 110) | @Test FILE: chapter04/src/test/java/com/mybatis3/services/TestDataPopulator.java class TestDataPopulator (line 20) | public class TestDataPopulator method main (line 24) | public static void main(String[] args) { method initDatabase (line 28) | public static void initDatabase() FILE: chapter04/src/test/java/com/mybatis3/services/TutorServiceTest.java class TutorServiceTest (line 13) | public class TutorServiceTest method setup (line 18) | @BeforeClass method teardown (line 24) | @AfterClass method testFindAllTutors (line 29) | @Test method testFindTutorById (line 39) | @Test method testFindTutorByNameAndEmail (line 46) | @Test method testCreateTutor (line 53) | @Test method testUpdateTutor (line 63) | @Test method testDeleteTutor (line 75) | @Test method testSelectTutorById (line 81) | @Test method testSelectTutorWithCoursesById (line 88) | @Test FILE: chapter05/src/main/java/com/mybatis3/config/AppConfig.java class AppConfig (line 16) | @Configuration FILE: chapter05/src/main/java/com/mybatis3/domain/Address.java class Address (line 9) | public class Address implements Serializable method toString (line 20) | @Override method Address (line 26) | public Address() method Address (line 29) | public Address(Integer addrId) method Address (line 33) | public Address(Integer addrId, String street, String city, String state, method getAddrId (line 43) | public Integer getAddrId() { method setAddrId (line 46) | public void setAddrId(Integer addrId) { method getStreet (line 49) | public String getStreet() method setStreet (line 53) | public void setStreet(String street) method getCity (line 57) | public String getCity() method setCity (line 61) | public void setCity(String city) method getState (line 65) | public String getState() method setState (line 69) | public void setState(String state) method getZip (line 73) | public String getZip() method setZip (line 77) | public void setZip(String zip) method getCountry (line 81) | public String getCountry() method setCountry (line 85) | public void setCountry(String country) FILE: chapter05/src/main/java/com/mybatis3/domain/Course.java class Course (line 12) | public class Course implements Serializable method toString (line 24) | @Override method getCourseId (line 30) | public Integer getCourseId() method setCourseId (line 34) | public void setCourseId(Integer id) method getName (line 38) | public String getName() method setName (line 42) | public void setName(String name) method getDescription (line 46) | public String getDescription() method setDescription (line 50) | public void setDescription(String description) method getStartDate (line 54) | public Date getStartDate() method setStartDate (line 58) | public void setStartDate(Date startDate) method getEndDate (line 62) | public Date getEndDate() method setEndDate (line 66) | public void setEndDate(Date endDate) method getStudents (line 70) | public List getStudents() method setStudents (line 77) | public void setStudents(List students) method getTutor (line 81) | public Tutor getTutor() { method setTutor (line 84) | public void setTutor(Tutor tutor) { FILE: chapter05/src/main/java/com/mybatis3/domain/PhoneNumber.java class PhoneNumber (line 13) | public class PhoneNumber implements Serializable method PhoneNumber (line 21) | public PhoneNumber() { method PhoneNumber (line 24) | public PhoneNumber(String countryCode, String stateCode, String number) { method PhoneNumber (line 31) | public PhoneNumber(String string) { method getCountryCode (line 46) | public String getCountryCode() { method setCountryCode (line 50) | public void setCountryCode(String countryCode) { method getStateCode (line 54) | public String getStateCode() { method setStateCode (line 58) | public void setStateCode(String stateCode) { method getNumber (line 62) | public String getNumber() { method setNumber (line 66) | public void setNumber(String number) { method getAsString (line 70) | public String getAsString() { FILE: chapter05/src/main/java/com/mybatis3/domain/Student.java class Student (line 10) | public class Student implements Serializable method toString (line 19) | @Override method Student (line 24) | public Student() method Student (line 27) | public Student(Integer id) method getStudId (line 31) | public Integer getStudId() method setStudId (line 35) | public void setStudId(Integer id) method getName (line 39) | public String getName() method setName (line 43) | public void setName(String name) method getEmail (line 47) | public String getEmail() method setEmail (line 51) | public void setEmail(String email) method getAddress (line 55) | public Address getAddress() { method setAddress (line 58) | public void setAddress(Address address) { method getPhone (line 61) | public PhoneNumber getPhone() { method setPhone (line 64) | public void setPhone(PhoneNumber phone) { FILE: chapter05/src/main/java/com/mybatis3/domain/Tutor.java class Tutor (line 10) | public class Tutor implements Serializable method toString (line 20) | @Override method Tutor (line 25) | public Tutor() method Tutor (line 28) | public Tutor(Integer id) method getTutorId (line 32) | public Integer getTutorId() method setTutorId (line 36) | public void setTutorId(Integer id) method getName (line 40) | public String getName() method setName (line 44) | public void setName(String name) method getEmail (line 48) | public String getEmail() method setEmail (line 52) | public void setEmail(String email) method getAddress (line 56) | public Address getAddress() method setAddress (line 60) | public void setAddress(Address address) method getCourses (line 64) | public List getCourses() { method setCourses (line 67) | public void setCourses(List courses) { FILE: chapter05/src/main/java/com/mybatis3/mappers/AddressMapper.java type AddressMapper (line 15) | public interface AddressMapper method selectAddressById (line 17) | @Select("select addr_id as addrId, street, city, state, zip, country f... method insertAddress (line 20) | @Insert("insert into addresses(street, city, state, zip, country) valu... FILE: chapter05/src/main/java/com/mybatis3/mappers/StudentMapper.java type StudentMapper (line 23) | public interface StudentMapper method findAllStudents (line 26) | @Select("select * from students") method findAllStudentsMap (line 35) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method findStudentById (line 38) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method findStudentMapById (line 41) | @Select("select stud_id as studId, name, email, addr_id as 'address.ad... method selectStudentWithAddress (line 44) | @Select("select stud_id, name, email, a.addr_id, street, city, state, ... method insertStudent (line 50) | @Insert("insert into students(name,email,addr_id, phone) values(#{name... method insertStudentWithMap (line 54) | @Insert("insert into students(name,email,addr_id, phone) values(#{name... method updateStudent (line 58) | @Update("update students set name=#{name}, email=#{email}, phone=#{pho... method deleteStudent (line 61) | @Delete("delete from students where stud_id=#{studId}") FILE: chapter05/src/main/java/com/mybatis3/mappers/TutorMapper.java type TutorMapper (line 31) | public interface TutorMapper method selectCoursesByTutorId (line 34) | @Select("select * from courses where tutor_id=#{tutorId}") method selectTutorWithCoursesById (line 38) | @Select("SELECT tutor_id, t.name as tutor_name, email, addr_id FROM tu... method findAllTutors (line 50) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findAllTutors... method findTutorById (line 53) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findTutorById... method findTutorByNameAndEmail (line 56) | @SelectProvider(type=TutorDynaSqlProvider.class, method="findTutorByNa... method insertTutor (line 59) | @InsertProvider(type=TutorDynaSqlProvider.class, method="insertTutor") method updateTutor (line 63) | @UpdateProvider(type=TutorDynaSqlProvider.class, method="updateTutor") method deleteTutor (line 66) | @DeleteProvider(type=TutorDynaSqlProvider.class, method="deleteTutor") method selectTutorById (line 69) | @SelectProvider(type=TutorDynaSqlProvider.class, method="selectTutorBy... FILE: chapter05/src/main/java/com/mybatis3/services/StudentService.java class StudentService (line 18) | @Service method findAllStudents (line 30) | public List findAllStudents() { method findStudentById (line 34) | public Student findStudentById(Integer id) { method findStudentWithAddressById (line 39) | public Student findStudentWithAddressById(int id) { method createStudent (line 43) | public Student createStudent(Student student) { method createStudentWithMap (line 55) | public void createStudentWithMap(Map studentDataMap) { method updateStudent (line 59) | public Student updateStudent(Student student) { method deleteStudent (line 64) | public boolean deleteStudent(int id) { method findStudentMapById (line 69) | public Map findStudentMapById(int id) { method findAllStudentsMap (line 73) | public List> findAllStudentsMap() { FILE: chapter05/src/main/java/com/mybatis3/services/TutorService.java class TutorService (line 21) | @Service method getTutorMapper (line 28) | private TutorMapper getTutorMapper(){ method findAllTutors (line 31) | public List findAllTutors() { method findTutorById (line 35) | public Tutor findTutorById(int tutorId) { method findTutorByNameAndEmail (line 39) | public Tutor findTutorByNameAndEmail(String name, String email) { method createTutor (line 43) | public Tutor createTutor(Tutor tutor) { method updateTutor (line 48) | public Tutor updateTutor(Tutor tutor) { method deleteTutor (line 53) | public boolean deleteTutor(int tutorId) { method selectTutorById (line 60) | public Tutor selectTutorById(int tutorId) { method selectTutorWithCoursesById (line 64) | public Tutor selectTutorWithCoursesById(int tutorId) { FILE: chapter05/src/main/java/com/mybatis3/sqlproviders/TutorDynaSqlProvider.java class TutorDynaSqlProvider (line 15) | public class TutorDynaSqlProvider method findAllTutorsSql (line 18) | public String findAllTutorsSql() method findTutorByIdSql (line 26) | public String findTutorByIdSql(final int tutorId) method findTutorByNameAndEmailSql (line 36) | public String findTutorByNameAndEmailSql(Map map) method insertTutor (line 48) | public String insertTutor(final Tutor tutor) { method updateTutor (line 62) | public String updateTutor(final Tutor tutor) method deleteTutor (line 78) | public String deleteTutor(int tutorId) method selectTutorById (line 86) | public String selectTutorById() FILE: chapter05/src/main/java/com/mybatis3/typehandlers/PhoneTypeHandler.java class PhoneTypeHandler (line 21) | public class PhoneTypeHandler extends BaseTypeHandler{ method setNonNullParameter (line 23) | @Override method getNullableResult (line 29) | @Override method getNullableResult (line 35) | @Override method getNullableResult (line 41) | @Override FILE: chapter05/src/main/java/com/mybatis3/util/MyBatisUtil.java class MyBatisUtil (line 18) | public class MyBatisUtil method getConnection (line 34) | public static Connection getConnection() method getSqlSessionFactory (line 50) | public static SqlSessionFactory getSqlSessionFactory() FILE: chapter05/src/main/resources/sql/create_tables.sql type ADDRESSES (line 2) | CREATE TABLE ADDRESSES type STUDENTS (line 13) | CREATE TABLE STUDENTS type TUTORS (line 29) | CREATE TABLE TUTORS type COURSES (line 46) | CREATE TABLE COURSES type COURSE_ENROLLMENT (line 59) | CREATE TABLE COURSE_ENROLLMENT FILE: chapter05/src/test/java/com/mybatis3/services/StudentServiceTest.java class StudentServiceTest (line 21) | @RunWith(SpringJUnit4ClassRunner.class) method setup (line 28) | @BeforeClass method testFindAllStudents (line 33) | @Test method testFindStudentById (line 43) | @Test method testFindStudentWithAddressById (line 51) | @Test method testCreateStudent (line 58) | @Test method testCreateStudentForException (line 81) | @Test(expected=DataAccessException.class) method testCreateStudentWithMap (line 100) | @Test method testUpdateStudent (line 110) | @Test method testDeleteStudent (line 126) | @Test method testFindStudentMapById (line 133) | @Test method testFindAllStudentsMap (line 139) | @Test FILE: chapter05/src/test/java/com/mybatis3/services/TestDataPopulator.java class TestDataPopulator (line 20) | public class TestDataPopulator method main (line 24) | public static void main(String[] args) { method initDatabase (line 28) | public static void initDatabase() FILE: chapter05/src/test/java/com/mybatis3/services/TutorServiceTest.java class TutorServiceTest (line 16) | @RunWith(SpringJUnit4ClassRunner.class) method setup (line 23) | @BeforeClass method testFindAllTutors (line 29) | @Test method testFindTutorById (line 39) | @Test method testFindTutorByNameAndEmail (line 46) | @Test method testCreateTutor (line 53) | @Test method testUpdateTutor (line 62) | @Test method testDeleteTutor (line 74) | @Test method testSelectTutorById (line 80) | @Test method testSelectTutorWithCoursesById (line 87) | @Test