VVContactRepository::reader
Line
//2 above invokes the
reader() member function of
VVContactRepository. The definition of the function called on
//2 is shown below. This function actually creates the query and submits it to the database. It then returns an
RWDBReader instance that can be used to get results back from the server.
RWDBReader
VVContactRepository::reader(const RWDBCriterion& criterion) //1
{
RWDBSelector s = aDB_.selector(criterion); //2
s.distinct(); //3
s << table_; //4
s.orderBy(nameColumn_); //5
return s.reader(); //6
}
customer.ID = rentals.customerID AND rentals.dueDate < '6/2/2000'