Data Loader based on Introspection

A Data Loader that does not implement the DataLoader interface is completely based on introspection and must satisfy the following requirements:

The class must have a default constructor that requires no arguments.

The class must have methods that return a collection of objects. The collection may be an object of one of these subclasses:

java.util.Collection

java.util.Enumeration

java.util.Iterator

When a data source is defined based on the Data Loader, the query engine uses introspection to discover all public methods that return one of the collection types. Each method is then added to the data source as a request.

If a request is created from a method that requires parameters, you can specify parameter values as part of the data source or declare them as variables, which become the data source parameters.

For each request, you need to specify the object type (class) returned by the request. The query engine probes the class to find all of the public “getter” methods, and then treats these as the fields in the record. During probing the query engine follows the object references, so the meta data can be a hierarchical structure, as shown below:

Employee (object class)

   Name

   FirstName

   LastName

   Address

      City

      State

      Zip

<< 6.4.1 Selecting the Type of Data Loader © 1996-2013 InetSoft Technology Corporation (v11.5) Data Loader based on DataLoader Interface >>