O'Reilly logo

haXe 2 by Benjamin Dasnois

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Manager

We have already seen how to initialize the manager, now, let's have a quick look at what it has to offer.

The all function

This function returns a list of all records present in the table. It takes an optional lock parameter that, if true, indicates that records that are going to be retrieved should have a lock put on them.

The count function

This function allows you to get the number of records that are present in the table. It can take an optional anonymous object as a parameter in order to filter records. By doing this, you can, for example, pass this object {sex : "M"} if you want to get only records corresponding to a male person.

The delete function

The delete function allows you to delete objects. Just like the count function, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required