I sent a message for Victor Saquicela (vhsg) describing the following error:
"I use AtmosFrameWork 2.0. When i delete a item from my DataGrid, this is deleted from DataBase, but not is deleted from cache. After of exclusion, if i to add this exactly information, it appears two times in the DataGrig and to have only one
occurrence in the DataBase. I need know where i can to verify this problem."
Victor answered:
"To solve this problem, download a last version of framework. Your version don't supoort rollback of collection cache."
Now i have the following questions:
I am working in one application implemented using the version 2.0. It will be necessary many alterations in this application using the new version of AtomsFrameWork? If i to use the version 2.0, without to use the cache, which alterations i need to make so that the application does not use cache at any moment? Another doubt is the following one:
In the methods "Retreive" and "Delete" of the class "CPersistenceObject", for example, the class "CPercistenceBroker" call is of the following form:
Dim persistentBroker As CPersistenceBroker()persistentBroker = getPersistenceBrokerInstance()
If i to call using only the "New", of the following form,
Dim persistentBroker As new CPersistenceBroker()
the application it fills o DataGrid correctly. Do you know the reason?
Excuses if the text will not be written correctly, therefore i am learning english. I am brazilian.
Thanks,
Meiriana
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>It will be necessary many alterations in this application using the new version of AtomsFrameWork?
There are some changes related to naming of classes, etc. This can be fixed using search and replace in most cases. See the release notes for 2.2 RC1 for more information.
Also, there is one change in the XML mapping related to the separation of the database providers.
>If i to use the version 2.0, without to use the cache, which alterations i need to make so that the application does not use cache at any moment?
To turn off the caching you can either force all objects to be expired immediately by setting their expiry interval in the class, or you can call the retrieve/find methods and pass a flag that will bypass the cache.
> PersistenceBroker New() method
The persistence broker is designed to be a singleton object (but it wasn't properly implemented). The persistence broker also contains the cache.
The first call (getPersistenceBrokerInstance) will return the existing persistence broker or create a new one if none exists.
The second call (new CPersistenceBroker) will create a new instance of the broker (and a new cache). It will be automatically initialised when you do the first retrieve call.
Because it has created a new cache this is why the second method works.
- Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I sent a message for Victor Saquicela (vhsg) describing the following error:
"I use AtmosFrameWork 2.0. When i delete a item from my DataGrid, this is deleted from DataBase, but not is deleted from cache. After of exclusion, if i to add this exactly information, it appears two times in the DataGrig and to have only one
occurrence in the DataBase. I need know where i can to verify this problem."
Victor answered:
"To solve this problem, download a last version of framework. Your version don't supoort rollback of collection cache."
Now i have the following questions:
I am working in one application implemented using the version 2.0. It will be necessary many alterations in this application using the new version of AtomsFrameWork? If i to use the version 2.0, without to use the cache, which alterations i need to make so that the application does not use cache at any moment? Another doubt is the following one:
In the methods "Retreive" and "Delete" of the class "CPersistenceObject", for example, the class "CPercistenceBroker" call is of the following form:
Dim persistentBroker As CPersistenceBroker()persistentBroker = getPersistenceBrokerInstance()
If i to call using only the "New", of the following form,
Dim persistentBroker As new CPersistenceBroker()
the application it fills o DataGrid correctly. Do you know the reason?
Excuses if the text will not be written correctly, therefore i am learning english. I am brazilian.
Thanks,
Meiriana
>It will be necessary many alterations in this application using the new version of AtomsFrameWork?
There are some changes related to naming of classes, etc. This can be fixed using search and replace in most cases. See the release notes for 2.2 RC1 for more information.
Also, there is one change in the XML mapping related to the separation of the database providers.
>If i to use the version 2.0, without to use the cache, which alterations i need to make so that the application does not use cache at any moment?
To turn off the caching you can either force all objects to be expired immediately by setting their expiry interval in the class, or you can call the retrieve/find methods and pass a flag that will bypass the cache.
> PersistenceBroker New() method
The persistence broker is designed to be a singleton object (but it wasn't properly implemented). The persistence broker also contains the cache.
The first call (getPersistenceBrokerInstance) will return the existing persistence broker or create a new one if none exists.
The second call (new CPersistenceBroker) will create a new instance of the broker (and a new cache). It will be automatically initialised when you do the first retrieve call.
Because it has created a new cache this is why the second method works.
- Richard.