Prev | Current Page 557 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


sync() : Void Re - populates the current object from the database.
ToString() : String Displays the object and table information as a string.
update() : Void Updates the database with the data stored in the
current object.
RELATIONS() : [{key : String,prop :
String,manager : Manager}]
An optional static function returning a list of objects
depicting the relationship between the current
object and other objects. The RELATIONS function
requires that the class object also contains a variable
store with property accessor and Manager instance.
Table 11 - 5
Variable Description
local_manager : neko.db.Manager < neko
.db.Object >
Provides an instance of the neko.db.Manager
class so as to provide method access from each of
the neko.db.Object methods.
TABLE_NAME : String Provides the name of the table associated with the
object. Default is the class name.
TABLE_IDS : Array < String > Provides the id field or fields. Default is id.
PRIVATE_FIELDS : Array < String > Specifies the fields in the object that do not map to
the relative database table.


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