Previous Topic: View ObjectsNext Topic: Export Objects


Import Objects

The Import objects are generated in classes called <method-name>Import based on the import view designed in the model for the CA Gen .NET Server. It contains the actual import data for the execution of the server. The Import objects are also responsible for all data validation that is performed on the attributes of the import views.

Even if the server does not contain any import views, the Import object is still generated because the system level data (Command, NextLocation, and so on) are always present. The developer must instantiate an Import object and populate it with the data. The instance is then passed onto the execution methods as a parameter.

The Import objects are stateful. In fact, they exist to hold a state. Therefore, the developer must be careful not to use a particular instance of one of these classes between different threads in a multi-threaded application.