public class OAObjectImportMatchDelegate extends Object
This is mostly used by POJO classes (which could be generated by OABuilder) that are created and used for JSON, that dont have the pkey property for the class (ex: autoSeq Id prop). Instead, there are properties or links that are importMatches that can be used to find the matching object.
The "trick" is that there could be multiple importMatches (properties or links), and it is not totally unique by itself, but requires
matching other values, and following rules in linked references.
If the importMatch is a link, it could have a hierarchy of links (recursive).
If not found, this will create the object and it's (optional) hierarchy of links that would then satisfy the rules for the importMatch
and other relationship (link) requirements.
Modifier and Type | Class and Description |
---|---|
static class |
OAObjectImportMatchDelegate.ImportMatch |
static class |
OAObjectImportMatchDelegate.ImportMatchDetail |
Constructor and Description |
---|
OAObjectImportMatchDelegate() |
Modifier and Type | Method and Description |
---|---|
protected static void |
createHierObjects(OAObject objThis,
OAObjectInfo oiThis,
String propertyPath,
Object value) |
static void |
process(OAObjectImportMatchDelegate.ImportMatch importMatch)
Used when importing (pojo Json) that only uses ImportMatches (does not have pkey property).
|
public static void process(OAObjectImportMatchDelegate.ImportMatch importMatch)
oaObjFrom
- object that has references based on importMatch value (not f/pkey)liTo
- object to find using import match.mapNameValue
- name(s)/value(s) for importMatch propertiesprotected static void createHierObjects(OAObject objThis, OAObjectInfo oiThis, String propertyPath, Object value)
Copyright © 1999–2025 ViaOA. All rights reserved.