Thursday 9 April 2009

getModel update

Update to the getModel conundrum. I simply changed the Db collection class to use "createNewItem()" instead of "createNewEmptyItem()" and I'm passing in the database table row as one parameter. createNewItem is part of just the Db collection class, not the abstract, anything-goes collection class.

This addition, plus changing the way stores are initialized in the App object have allowed me to define the store class a little bit better. It's moving away from a flabby cloud of getters and setters into a concrete, testable powerhouse!

No comments: