From: Samuel Lampa <samuel.lampa@gm...> - 2013-04-22 10:34:57
I wanted to ask for some clarification about the indended use of
updateData() vs doDataUpdate(), which is originally defined in SMWStore.
The docstrings for them are completely identical, which is a litle
Which one am I supposed to extend in subclassing stores? I have used
updateData() so far, which in SMWStore finally calls doDataUpdate, so it
seems OK, but in SMWSQLStore, only doUpdateData is implemeted, so I was
thinking if this indicates that this is thefunction that is thought to
have different implementations in different stores?
I can get it to work either way of course, but it would feel "safer" to
use the intended pattern :)
Developer at SNIC-UPPMAX http://www.uppmax.uu.se
Developer at Dept of Pharm Biosciences http://www.farmbio.uu.se
Looks like updateData just contains store implementation independent code.
This suggests updateData should be final, and that doDataUpdate should be
abstract. In other words, you probably want to implement doDataUpdate in a
new class deriving directly from SMWStore. Or are you deriving from a
subclass, ie the SQL Store?
Jeroen De Dauw
Don't panic. Don't be evil.