Hi,
I am looking for the correct way of doing the following:
I would like to have a few BOs that are loaded from the database and from that point have a life of their own (not persistent against the database) - the idea behind this is to have a template in the database and create objects from the template, the objects will not need to save any information to the database but they can change (add items to the item lists, change member data etc).
I still want to support the data portal methods like delete, update and so on but this will be local and not update the database.
Should I use read-only BOs or editable BOs that implement the data portal methods to run locally?
Should I create these methods under the business methods and keep it apart from the data portal methods?
Thanks
Sounds like you should use an Editable object but then only code for DataPortal_Fetch.
This makes it act more like a ReadOnly object. Except you can change the values.
You could write methods like Update or Save but they would *NOT* be DataPortal methods since you do not want to hit the DB. They would just do whatever you thought they should do locally to the object.
Joe
Copyright (c) Marimer LLC