Program guide > Programming for JPA integration > Client-based JPA preload utility overview > Implement JPA preload
Parameters for load method with ClientLoader
The load method for ClientLoader allows you various configuring for the requirements.
- objectGrid : The ObjectGrid instance. It is a client-side ObjectGrid instance.
- "CUSTOMER" : The map to be loaded. Since the Customer has a cascade-all relation with Order entities, the Order entities will be loaded too.
- "custPU" : The JPA persistence unit name for the Customer and Order entities.
- null : The persistenceProps map is null, which means the default persistence properties configured in the persistence.xml will be used.
- null : The entityClass is configured as null. It will be set to the entity class configured in the ObjectGrid entity meta-data descriptor XML for the map "CUSTOMER", in this case, Customer.class.
- null : The loadSql is null, which means the default "select o from CUSTOMER o" will be used to query the JPA entities.
- null : The query parameter map is null.
- true : This indicates the data loading mode is preload. Therefore, clear operations will be called to both the CUSTOMER and ORDER maps to clear all the data before loading due to the cascade-remove relation between them.
- null : The ClientLoaderCallback is null.
For more information about the required parameters, see ClientLoader API.
Parent topic:
Implement client-based JPA preload utility