public class OAJacksonDeserializerLoaderOld extends Object
Modifier and Type | Field and Description |
---|---|
protected List<OAJson.StackItem> |
alGetObjectUsingLinkEqualWithUnique |
protected List<OAJson.StackItem> |
alGetReferenceUsingLinkEqualWithUnique |
Constructor and Description |
---|
OAJacksonDeserializerLoaderOld(OAJson oaj) |
Modifier and Type | Method and Description |
---|---|
protected void |
_findExistingObject(OAJson.StackItem stackItem) |
protected void |
_findExistingObjectFromPojo(OAJson.StackItem stackItem) |
protected void |
addNewObjectToHubInEqualPropertyPath(OAJson.StackItem stackItem) |
protected Object |
convert(com.fasterxml.jackson.databind.JsonNode jn,
OAPropertyInfo pi) |
protected void |
createObject(OAJson.StackItem stackItem) |
protected void |
createReference(OAJson.StackItem stackItem) |
void |
debug(OAJson.StackItem si,
boolean bShowObj,
String msg) |
void |
debug(OAJson.StackItem si,
String msg) |
void |
debug2(OAJson.StackItem si,
String msg) |
void |
findExistingObject(OAJson.StackItem stackItem) |
protected OAObject |
getEqualsObject(OAJson.StackItem stackItem) |
protected boolean |
getObject(OAJson.StackItem stackItem)
main method for finding an existing OAObject to match the stackItem.ObjectNode
|
protected OAObjectKey |
getObjectKeyForJsonObject(OAJson.StackItem stackItem) |
protected OAObjectKey |
getObjectKeyFromFkeys(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingGuid(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingImportMatch(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingLinkEqualWithUnique(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingLinkUnique(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingNewObjectGuid(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingPKeys(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStack(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStackAutoCreate(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStackImportMatch(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStackLinkEqualWithUnique(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStackLinkUnique(OAJson.StackItem stackItem) |
protected boolean |
getObjectUsingStackPKeys(OAJson.StackItem stackItem) |
protected void |
getReference(OAJson.StackItem stackItem)
main method for finding an existing OAObject to match a reference from the stackItem.parent.objectNode
This will first look in the stack, and then find using fkey property(s), importMatch(s), linkUnique, linkEqualsWithUnique. |
protected boolean |
getReference(OAJson.StackItem stackItem,
boolean bCreateIfNotFound) |
protected boolean |
getReferenceUsingFKeys(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingImportMatch(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingLinkEqualWithUnique(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingOtherLinkEqualWithSameUnique(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStack(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackAutoCreate(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackFKeys(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackLinkEqualWithUnique(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackLinkUnique(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackParentOwner(OAJson.StackItem stackItem) |
protected boolean |
getReferenceUsingStackWithOwnerAutoCreate(OAJson.StackItem stackItem)
If stackItem has an 1to1 that has an owner, then find owner object in stack.
|
<T extends OAObject> |
load(com.fasterxml.jackson.databind.JsonNode node,
T root) |
<T extends OAObject> |
load(com.fasterxml.jackson.databind.JsonNode node,
T root,
Class<T> clazz)
Main method called by OAJacksonModlue to load an OAObject and any references from json tree.
|
protected void |
load(OAJson.StackItem stackItem)
Main method for loading JsonObject into a (new or existing) OAObject.
Recursively will load all link objects. |
protected void |
loadObject(OAJson.StackItem stackItem) |
protected boolean |
loadObjectIdProperties(OAJson.StackItem stackItem) |
protected void |
loadObjectManyLink(OAJson.StackItem stackItem,
OALinkInfo li) |
protected void |
loadObjectManyLinkPos(OAJson.StackItem stackItem,
int pos) |
protected boolean |
loadObjectManyLinkPos1b(OAJson.StackItem stackItem,
int pos) |
protected boolean |
loadObjectManyLinkPos1c(OAJson.StackItem stackItem,
int pos) |
protected boolean |
loadObjectManyLinkPos1d(OAJson.StackItem stackItem,
int pos) |
protected void |
loadObjectOneLink(OAJson.StackItem stackItem,
OAJson.StackItem stackItemChild) |
protected void |
loadObjectOneLink(OAJson.StackItem stackItem,
OALinkInfo li) |
protected boolean |
loadObjectOneLink1(OAJson.StackItem stackItemChild) |
protected boolean |
loadObjectOneLink1a(OAJson.StackItem stackItemChild) |
protected boolean |
loadObjectOneLink1b(OAJson.StackItem stackItemChild) |
protected boolean |
loadObjectOneLink1c(OAJson.StackItem stackItemChild) |
protected boolean |
loadObjectOneLink1d(OAJson.StackItem stackItemChild) |
protected void |
loadObjectProperties(OAJson.StackItem stackItem) |
protected List<OAJson.StackItem> alGetObjectUsingLinkEqualWithUnique
protected List<OAJson.StackItem> alGetReferenceUsingLinkEqualWithUnique
public OAJacksonDeserializerLoaderOld(OAJson oaj)
public <T extends OAObject> T load(com.fasterxml.jackson.databind.JsonNode node, T root)
public <T extends OAObject> T load(com.fasterxml.jackson.databind.JsonNode node, T root, Class<T> clazz)
public void debug(OAJson.StackItem si, String msg)
public void debug2(OAJson.StackItem si, String msg)
public void debug(OAJson.StackItem si, boolean bShowObj, String msg)
protected void load(OAJson.StackItem stackItem)
find or create a matching OAObject from an JsonObject.
This will first use the stack, then guid, pkeys, importMatches, linkWithUnique, linkWithEqualAndUnique.
protected boolean getObject(OAJson.StackItem stackItem)
protected boolean getObjectUsingStack(OAJson.StackItem stackItem)
protected boolean getObjectUsingStackAutoCreate(OAJson.StackItem stackItem)
protected boolean getObjectUsingStackPKeys(OAJson.StackItem stackItem)
protected boolean getObjectUsingStackImportMatch(OAJson.StackItem stackItem)
protected OAObjectKey getObjectKeyForJsonObject(OAJson.StackItem stackItem)
protected boolean getObjectUsingStackLinkUnique(OAJson.StackItem stackItem)
protected boolean getObjectUsingStackLinkEqualWithUnique(OAJson.StackItem stackItem)
protected boolean getObjectUsingGuid(OAJson.StackItem stackItem)
protected boolean getObjectUsingPKeys(OAJson.StackItem stackItem)
protected boolean getObjectUsingNewObjectGuid(OAJson.StackItem stackItem)
protected boolean getObjectUsingImportMatch(OAJson.StackItem stackItem)
protected boolean getObjectUsingLinkUnique(OAJson.StackItem stackItem)
protected boolean getObjectUsingLinkEqualWithUnique(OAJson.StackItem stackItem)
protected void createObject(OAJson.StackItem stackItem)
protected boolean loadObjectIdProperties(OAJson.StackItem stackItem)
protected void addNewObjectToHubInEqualPropertyPath(OAJson.StackItem stackItem)
protected void loadObject(OAJson.StackItem stackItem)
protected void loadObjectProperties(OAJson.StackItem stackItem)
protected void loadObjectOneLink(OAJson.StackItem stackItem, OALinkInfo li)
protected void loadObjectOneLink(OAJson.StackItem stackItem, OAJson.StackItem stackItemChild)
protected boolean loadObjectOneLink1(OAJson.StackItem stackItemChild)
protected boolean loadObjectOneLink1a(OAJson.StackItem stackItemChild)
protected boolean loadObjectOneLink1b(OAJson.StackItem stackItemChild)
protected boolean loadObjectOneLink1c(OAJson.StackItem stackItemChild)
protected boolean loadObjectOneLink1d(OAJson.StackItem stackItemChild)
protected void loadObjectManyLink(OAJson.StackItem stackItem, OALinkInfo li)
protected void loadObjectManyLinkPos(OAJson.StackItem stackItem, int pos)
protected boolean loadObjectManyLinkPos1b(OAJson.StackItem stackItem, int pos)
protected boolean loadObjectManyLinkPos1c(OAJson.StackItem stackItem, int pos)
protected boolean loadObjectManyLinkPos1d(OAJson.StackItem stackItem, int pos)
protected void getReference(OAJson.StackItem stackItem)
protected boolean getReference(OAJson.StackItem stackItem, boolean bCreateIfNotFound)
protected boolean getReferenceUsingStack(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackWithOwnerAutoCreate(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackAutoCreate(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackParentOwner(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackFKeys(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackLinkUnique(OAJson.StackItem stackItem)
protected boolean getReferenceUsingStackLinkEqualWithUnique(OAJson.StackItem stackItem)
protected boolean getReferenceUsingFKeys(OAJson.StackItem stackItem)
protected OAObjectKey getObjectKeyFromFkeys(OAJson.StackItem stackItem)
protected boolean getReferenceUsingImportMatch(OAJson.StackItem stackItem)
protected boolean getReferenceUsingLinkEqualWithUnique(OAJson.StackItem stackItem)
public void findExistingObject(OAJson.StackItem stackItem)
protected void _findExistingObject(OAJson.StackItem stackItem)
protected void _findExistingObjectFromPojo(OAJson.StackItem stackItem)
protected boolean getReferenceUsingOtherLinkEqualWithSameUnique(OAJson.StackItem stackItem)
protected void createReference(OAJson.StackItem stackItem)
protected Object convert(com.fasterxml.jackson.databind.JsonNode jn, OAPropertyInfo pi)
protected OAObject getEqualsObject(OAJson.StackItem stackItem)
Copyright © 1999–2025 ViaOA. All rights reserved.