Prev | Current Page 556 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Manager.cleanup empties several containers of data in order to free up
memory and other resources.
(continued)
289
Chapter 11: Performing Server-Side Trickery
Table Mapping with neko.db.Object
The neko.db.Object class is merely a container providing specific static variables and methods that
call associated versions of themselves in the neko.db.Manager class. The point of neko.db.Object is
to help in providing a base class for your objects that are compatible with the neko.db.Manager
functionality and to help in its effort to correctly map your object to its relative table.
Table 11 - 4 details the methods of the neko.db.Object class, while Table 11 - 5 details its static variables.
All of the methods listed in Table 11 - 4 do not accept any parameters.
Table 11 - 4
Methods Description
new() : Void Class constructor.
delete() : Void Deletes the record associated with the current
object from the database.
insert() : Void Inserts the data associated with the current object
into a new record in the database.


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