In my last post we began creating out Gateway Object. It was a lot more work then I thought it was going to be, hence, this is the second part of creating a gateway object. Hopefully, we won't get to three. But the fact of the matter is, we need these things in place so that we can create our ColdBox application. So suck-it-up :)
Previously...
In the last post we created 10 methods, for some we used the Illudium PU-36 code generator, and for some we used our insanely fast typing abilities. The methods we've created so far are:
- createList(list:List):boolean
- readList(list:List):void
- updateList(list:List):boolean
- deleteList(list:List)boolean
- createItem(item:Item):boolean
- readItem(item:Item):void
- updateItem(item:Item):boolean
- deleteItem(item:Item):boolean
- getAllItemsAsQuery(id:Numeric):Query
- queryRowToStruct(qry:Query):Struct
After we created our methods, we modified our readList() method to return a List object with its child Item objects in a private property of type Array.
Modifying updateList() to include child objects
Now we need to make the same modifications to the updateList() and deleteList() methods.
[More]