04-01-06 07:39 PM
Hi Alejandro,
Sorry about that.. did not notice that slip till you pointed it out.
What I'd wanted to state was that only those keys in object whose names do
not start with an "_" (underscore) are persisted. All the objects, basket,
purchase order, template are derived from the ordergroup class which, if you
examine is an implementation of the commerce server "dictionary" class. Most
commonly used keys on the ordergroup object have been strong-named as
properties in these objects which is why you can still bypass some of these
object properties by using the ".item(<key_name> )" notation.
The "Save" option uses the "DBStorage" class to persist these objects into
the underlying data stores. If you read the documentation pertaining to the
way DBStorage works, you'll find that it is a class that converts the
dictionary to the table. You'll find this bit about "_" there. You will also
then understand how to extend the underlying DB to store your own keys.
--
Ravi Shankar
"Alejandro" wrote:
[vbcol=seagreen]
> Thanks a lot!
> I didn't understand that part:
>
>
> particularly, "Only the keys start DO NOT " seems to be missing something
?
>
>
> "Ravi Shankar" wrote:
>
[ Post a follow-up to this message ]
|