Next: 4.4.2 Objects to be
Up: 4.4.1 Specify the component
Previous: 4.4.1 Specify the component
  Contents
Suppose we have a Lua library that implements the
access of databases contained in a specific DBMS. This library has
three types of objects: databases, queries and records. In COM world,
this could be represented by an Application object that opens
databases and returns a Database Object. A Database object has, among
others, a Query method. This method receives a SQL statement and
returns a Query object. The Query object is a collection, which can be
iterated using the parameterized property Records, which returns an
object of type Record.
Fabio Mascarenhas de Queiroz
2005-06-06