120 Chapter 6 Object-Relational Mapping Another popular way (Web host music)

120 Chapter 6 Object-Relational Mapping Another popular way to store Java objects is to use a traditional relational database, such as Oracle, Microsoft SQL Server, or MySQL. Rather than serialize each object, we could decompose each object into its constituent parts and store each part separately. For example, for a bank account object, the bank account number could be stored in one relational database field and the bank account balance in another field. When you save your Java objects, you would use JDBC to map the object data into a relational database. When you want to load your objects from the database, you would instantiate an object from that class, read the data in from the database, and then populate that object instance s fields with the relational data read in. This is shown in Figure 6.1. String accountID String ownerName double balance Bank Account Database API Such as JDBC or SQLJ Bank Account Table Relational Database Figure 6.1 Object-relational mapping.
We provides quality the CPanel Web Hosting. All our web hosting plans regular, business and expert are competitively priced and unsurpassed in reliability, uptime, and quality of service.

Leave a Reply