Internal Value Object for Query

The internal value object for a query database operation contains two components, the where fields and the result fields.

The names that you use for variables in the internal value object are important because the generated code uses these names when calling the getter and setter methods for these objects.

This code sample shows the structure for the internal value object:

public class InternalGetAddressBook extends ValueObject{
   private InternalGetAddressBookWhereFields queryWhereFields = 
                                new InternalGetAddressBookWhereFields();
   private ArrayList queryResults = null;
   ...
}

In the preceding code sample, the variables are named queryResults and queryWhereFields. The queryResults variable represents an array list that contains InternalShowAddressBook type objects. The InternalShowAddressBook value object extends InternalGetAddressBookWhereFields. In the code sample, no additional fields are added to the InternalShowAddressBook value object. However, more fields could be returned from the query than were allowed in the where clause.

This class diagram shows the business service objects for GetAddressBook:

Business service, GetAddressbook, class diagram.