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, waitcompareTo@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 IEntityImportConfigentity - IEntity that should be importedpublic de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
getEntity in interface IEntityImportConfigIEntity that should be importedpublic de.xima.cmn.dao.interfaces.IEntity<Long> getPersisted()
getPersisted in interface IEntityImportConfigIEntity already existing entitypublic de.xima.cmn.dao.interfaces.IEntity<Long> getEntityToOverride()
getEntityToOverride in interface IEntityImportConfigIEntity that should be overridden instead of the persistedpublic void setEntityToOverride(de.xima.cmn.dao.interfaces.IEntity<Long> entityToOverride)
setEntityToOverride in interface IEntityImportConfigentityToOverride - IEntity that should be overridden instead of the persistedpublic Class<?> getEntityClass()
getEntityClass in interface IEntityImportConfigpublic Set<IEntityDependency> getDependencies()
getDependencies in interface IEntityImportConfigList of all the dependencies to this entitypublic EEntityConflictResolveAction getConflictResolveAction()
getConflictResolveAction in interface IEntityImportConfigEEntityConflictResolveAction specifying what to do if the entity already existspublic void setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)
setConflictResolveAction in interface IEntityImportConfigconflictResolveAction - EEntityConflictResolveAction specifying what to do if the entity already
existspublic boolean isEntityExists()
isEntityExists in interface IEntityImportConfigtrue if the given entity already exists (based on UUID and its context)public boolean isImported()
isImported in interface IEntityImportConfigpublic void setImported(boolean imported)
IEntityImportConfigtrue if the entity has been importedsetImported in interface IEntityImportConfigpublic String getImportJson()
getImportJson in interface IEntityImportConfigpublic void updatePersisted(IEntityContext ec)
IEntityImportConfigupdatePersisted in interface IEntityImportConfigec - IEntityContext to be used for updating the persisted entitypublic void resolveDependencies(IEntityContext ec)
IEntityImportConfigresolveDependencies in interface IEntityImportConfigec - IEntityContext to be usedCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.