Prev | Current Page 563 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

To begin, you are not restricted to dealing with objects
that can only call a single record from a database, but can deal with many by using the Manager class ??™ s
various array of tools. Table 11 - 6 details the methods of the neko.db.Manager class.
292
Part II: Server Side, JavaScript, and Flash: Oh My!
Table 11 - 6
Method Description
new( obj : Dynamic ) : Void Accepts the class of the parent neko.db.Object
object as the parameter and the type of the parent
neko.db.Object as the type. See below.
all( val : Bool ) : List < T > Returns all the records of the associated table within a
list of the type passed in the Manager class declaration.
count() : Int Returns the number of records in the table.
doDelete( val : T ) : Void Deletes the record contained in the passed SPOD
object.
doInsert( val : T ) : Void Inserts data from the data contained in the passed
SPOD object.
doSync( val : T ) : Void Synchronizes the data in the passed object from its
associated record.
doUpdate( val : T ) : Void Updates data in the database from the data contained
in the passed SPOD object.


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