public class EntityImportConfig extends Object implements IEntityImportConfig
Constructor and Description |
---|
EntityImportConfig(IEntityContext ec,
de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Set<IEntityDependency> dependencies)
Deprecated.
|
EntityImportConfig(IEntityContext ec,
de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Set<IEntityDependency> dependencies,
String importJson) |
Modifier and Type | Method and Description |
---|---|
EEntityConflictResolveAction |
getConflictResolveAction() |
Set<IEntityDependency> |
getDependencies() |
de.xima.cmn.dao.interfaces.IEntity<Long> |
getEntity() |
Class<?> |
getEntityClass() |
de.xima.cmn.dao.interfaces.IEntity<Long> |
getEntityToOverride() |
String |
getImportJson() |
de.xima.cmn.dao.interfaces.IEntity<Long> |
getPersisted() |
boolean |
isEntityExists() |
boolean |
isImported() |
void |
resolveDependencies(IEntityContext ec)
Resolves the dependencies of this entity
|
void |
setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction) |
void |
setEntity(de.xima.cmn.dao.interfaces.IEntity<Long> entity) |
void |
setEntityToOverride(de.xima.cmn.dao.interfaces.IEntity<Long> entityToOverride) |
void |
setImported(boolean imported)
Set to
true if the entity has been imported |
String |
toString() |
void |
updatePersisted(IEntityContext ec)
Updates the persisted entity if existing based on the entity represented by this config
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
@Deprecated public EntityImportConfig(IEntityContext ec, de.xima.cmn.dao.interfaces.IEntity<Long> entity, Set<IEntityDependency> dependencies)
public EntityImportConfig(IEntityContext ec, de.xima.cmn.dao.interfaces.IEntity<Long> entity, Set<IEntityDependency> dependencies, String importJson)
public void setEntity(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
setEntity
in interface IEntityImportConfig
entity
- IEntity
that should be importedpublic de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
getEntity
in interface IEntityImportConfig
IEntity
that should be importedpublic de.xima.cmn.dao.interfaces.IEntity<Long> getPersisted()
getPersisted
in interface IEntityImportConfig
IEntity
already existing entitypublic de.xima.cmn.dao.interfaces.IEntity<Long> getEntityToOverride()
getEntityToOverride
in interface IEntityImportConfig
IEntity
that should be overridden instead of the persistedpublic void setEntityToOverride(de.xima.cmn.dao.interfaces.IEntity<Long> entityToOverride)
setEntityToOverride
in interface IEntityImportConfig
entityToOverride
- IEntity
that should be overridden instead of the persistedpublic Class<?> getEntityClass()
getEntityClass
in interface IEntityImportConfig
public Set<IEntityDependency> getDependencies()
getDependencies
in interface IEntityImportConfig
List
of all the dependencies to this entitypublic EEntityConflictResolveAction getConflictResolveAction()
getConflictResolveAction
in interface IEntityImportConfig
EEntityConflictResolveAction
specifying what to do if the entity already existspublic void setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)
setConflictResolveAction
in interface IEntityImportConfig
conflictResolveAction
- EEntityConflictResolveAction
specifying what to do if the entity already
existspublic boolean isEntityExists()
isEntityExists
in interface IEntityImportConfig
true
if the given entity already exists (based on UUID and its context)public boolean isImported()
isImported
in interface IEntityImportConfig
public void setImported(boolean imported)
IEntityImportConfig
true
if the entity has been importedsetImported
in interface IEntityImportConfig
public String getImportJson()
getImportJson
in interface IEntityImportConfig
public void updatePersisted(IEntityContext ec)
IEntityImportConfig
updatePersisted
in interface IEntityImportConfig
ec
- IEntityContext
to be used for updating the persisted entitypublic void resolveDependencies(IEntityContext ec)
IEntityImportConfig
resolveDependencies
in interface IEntityImportConfig
ec
- IEntityContext
to be usedCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.