|
ObJectRelationalBridge (OJB)
Data being the major component in any project should be manipulated and stored in a right way at right time. Delay in response time or dirty read/write will degrade the performance of the system and keeping the system in an inconsistent state as a whole. In the current tutorial the DB layer sits at the end storing the data that is passed through UI layer and service layer.
With the introduction of ORM tools the data manipulation and maintenance became easy that can be directly mapped with the java, OJB is one among them that is designed developed by Apache. It allows persistence for java objects against relational databases.
The following are some key features of OJB:
* Provides flexibility through support to multiple persistence APIs
* The applications that are designed and developed using OJB are scalable for future enhancements.
* It support JNDI lookups and Bean Managed Persistence
* The XML based ORM helps to manipulate during run-time
* It provides a flexible configuration and plug-in mechanism that allows to select from set of predefined components.
* The open source feature with 100% pure Java orientation facilitates rapid development.
With the completion of the user inteface layer and services layer we move into the database layer which actually saves the data into the database. The annotations and xml configuration features provided by OJB enables us to map the table columns with the bean properties directly thus making the data manipulations easy. The built-in methods in OJB help us to store ,update and delete the data in a object model.
Figure 15. Creating New Java Project
Creating New Java Project |
|