Prev | Current Page 558 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


manager : Neko.db.Manager Specifies the class extending neko.db.Manager
for your object.
290
Part II: Server Side, JavaScript, and Flash: Oh My!
The TABLE _ NAME and TABLE _ IDS Variables
TABLE_NAME and TABLE_IDS are static variables that provide the SPOD framework with the means to
map the data contained in your custom objects with data in the database. The TABLE_NAME variable
provides a string to the Manager object that enables it to call the correct table when mapping data. If you
fail to specify the TABLE_NAME variable, then the class name of your custom object is used. The TABLE_
IDS variable, however, expects an array of strings listing the fields for that table that make up its unique
id. When dealing with a SQLite database, you could quite easily pass the value [ ??? OID ??? ] , which would
tell the SPOD to use the bespoke SQLite row id for that table.
The PRIVATE _ FIELDS Variable
Each of the objects you create will provide variables with the same names as the fields in the database
tables they map.


Pages:
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570