public class ClientImportEntityResolver extends EntityResolver
EntityResolver to accomplish this. New objects are assumed to have
the client/organization set through the xml.
This resolver does not query the AD_REF_DATA_LOADED table.EntityResolver.ResolvingMode| Constructor and Description |
|---|
ClientImportEntityResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected BaseOBObject |
findUniqueConstrainedObject(BaseOBObject obObject) |
static ClientImportEntityResolver |
getInstance() |
BaseOBObject |
resolve(String entityName,
String id,
boolean referenced)
Searches for a existing entity with the same id.
|
BaseOBObject |
resolve(String entityName,
String id,
boolean referenced,
boolean filterOrganizations)
Searches for an entity using the entityname and the id, first the internal cache is searched
and then the database.
|
BaseOBObject |
searchInstance(Entity entity,
String id) |
protected void |
setClient(Client client) |
protected void |
setOrganization(Organization organization) |
addObjectToCaches, doSearch, doSearch, exchangeObjects, getClient, getClientZero, getData, getKey, getObjectUsingOriginalId, getOrganization, getOrganizationZero, getOriginalId, getResolvingMode, isOptionCreateReferencedIfNotFound, search, searchClient, searchClientOrganization, searchSystem, setClientOrganization, setClientOrganizationZero, setOptionCreateReferencedIfNotFound, setResolvingModepublic static ClientImportEntityResolver getInstance()
public BaseOBObject resolve(String entityName, String id, boolean referenced)
resolve in class EntityResolverentityName - the name of the entity to resolveid - the idreferenced - is true if the entity needs to be resolved because it is referenced from imported
data, is false if the entity is part of the main imported datasetBaseOBObject.getEntityName(),
EntityResolver.resolve(String, String, boolean)public BaseOBObject resolve(String entityName, String id, boolean referenced, boolean filterOrganizations)
EntityResolverresolve in class EntityResolverentityName - the name of the entity searched forid - the id, can be nullreferenced - if the entity is searched because it is refered to or if it is in the root of the xmlpublic BaseOBObject searchInstance(Entity entity, String id)
searchInstance in class EntityResolverprotected BaseOBObject findUniqueConstrainedObject(BaseOBObject obObject)
findUniqueConstrainedObject in class EntityResolverprotected void setClient(Client client)
setClient in class EntityResolverprotected void setOrganization(Organization organization)
setOrganization in class EntityResolver