There are plenty of persistence frameworks in the Java community. iBATIS is an open source "data mapper" framework. Data mappers do not tie classes to tables or class fields to columns. Instead, a data mapper maps parameters and results of SQL statements to classes and fields. This makes iBATIS a simple and lightweight persistence framework. By removing the repetitive and error prone work, iBATIS helps remove developers from focusing on low level JDBC code. In fact, the iBATIS documentation states the goal of iBATIS is to “provide 80% of JDBC functionality using only 20% of the code.”
This hands on course will expose developers to this open source framework while also teaching awareness of some real-world memory, performance and other issues that are associated to any persistence framework. After taking this class, your developers should be able to persist the data in Java objects faster and build applications that are more flexible and easier to maintain.
Learning Objectives
- Gain an understanding of iBATIS as a data mapper and how it differs from other persistent frameworks like Hibernate and JPA in Java
- Learn how to retrieve relational data into Java objects using the iBATIS framework
- Explore methods of inserting, updating, and removing data from the database using iBATIS and Java objects
- See how to relate objects and automatically have iBATIS retrieve data for associated objects
- Explore performance and memory issues associated with object relationships
- See how to utilize lazy loading in iBATIS to reduce the number of objects in memory
- Understand how to solve the N+1 selects issue in iBATIS
- Study how iBATIS handles class inheritance
- Learn the four different levels or scopes of transactions that iBATIS supports
- See and use iBATIS Dynamic SQL tags for generating SQL at runtime
Audience
This course is designed for Java programmers who have interest in learning how to persist Java object data using the iBATIS open source data mapper framework.
Length
1 Day