Prev | Current Page 560 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

db.Manager < Author > (Author);
}
As you can see, it doesn ??™ t matter whether the variables you specify are public or private. Each and
every variable that doesn ??™ t map to a database field should be listed here. The one exception to this rule
is for variables that act as keys for tables linked using the RELATIONS method.
291
Chapter 11: Performing Server-Side Trickery
delete(), insert(), and update()
Any object extending neko.db.Object is a container for a single record from the specifically mapped
table. This provides a unique opening for being able to work with individual records at a time and then
save that information within the database when required.
When working with an instance of the object already containing data from the database, you can choose
to delete it from the database in its entirety by calling the objects delete method. Once performed, the
object will still contain the original data from that record, including the unique identifier. Therefore, it is
probably wise to delete the object, also, once this method has successfully returned.


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