Persistence with JDBC
Notes:
An example of the code generated from the Java purchase order class to activate an object.
Note the comprehensive exception handling, SQL SELECT statement, reuse of the statement handle, synchronization, and so on.
Automatic generation of this code ensures a disciplined object to database interface, particularly in open distributed environments.
The approach also allows database access and update to be extended from row level locking to attribute (or field) level locking.
Intelligent access strategies also ensure that only those aspects of an object that are required for reading or update are activated.