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, setResolvingMode
public static ClientImportEntityResolver getInstance()
public BaseOBObject resolve(String entityName, String id, boolean referenced)
resolve
in class EntityResolver
entityName
- 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)
EntityResolver
resolve
in class EntityResolver
entityName
- 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 EntityResolver
protected BaseOBObject findUniqueConstrainedObject(BaseOBObject obObject)
findUniqueConstrainedObject
in class EntityResolver
protected void setClient(Client client)
setClient
in class EntityResolver
protected void setOrganization(Organization organization)
setOrganization
in class EntityResolver