| ||
|
|
Sections:Specifications, Team, Technical References, TopazPort
The TableAccessor class is an abstract class we will use to read and write from various tables in the database. Eventually we will use this to update the structure of the database as well so we don't have the database structure in two places (the TableAccessor and updateAllTables()). But for now, it's just a method for reading and writing tables. setReadSelectsetReadSelect is called to set the columns we will select at read time. It is passed a QueryObject so joins can be done. loadExtraDataThis routine is called when we are loading data into the objekt. For some tables, like the objekt_groups table, we have a one to many relationship and need to load an array of entries from a table. This routine allows us to do that. saveTableDataThis is the workhorse of this class. It saves the data for the table. If your table has one entry per object, you can use masterSave in the base TableAccessor class. This routine either inserts or updates a record.
|
|