[Previous] [Table of Contents] [Next]

Bojangles Tutorial
Creating a persistence capable version of the business object

Making the Account object persistence capable is a two step process:

  • Determine the persistence service
  • Run the emitter(s) on your objects for the persistence service you choose
  • Bojangles provides a persistence service called FilepoBC, which is short for File per Object Base Collection. The FilepoBC persistence service stores each object it manages as a file in the file system. It is capable of managing any manageable business object.

    Run the following emitters to make the manageable version of the account object (AccountImpl) capable of taking advantage of the FilepoBC persistence service (the order these two emitters are executed is significant):

    java COM.ibm.jaws.services.filepobc.emit.RunCachedEmitter COM.ibm.jaws.tutorial1.AccountImpl COM.ibm.jaws.tutorial1 FilepoManaged FilepoCached
    java COM.ibm.jaws.services.filepobc.emit.RunManagedDelEmitter COM.ibm.jaws.tutorial1.Account COM.ibm.jaws.tutorial1 FilepoManaged FilepoCached
    

    These two emitters will produce two new objects contained in the modules AccountFilepoManaged.java and AccountFilepoCached.java.


    [Previous] [Table of Contents] [Next]