public interface IEntityImportConfig extends Comparable<IEntityImportConfig>
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(IEntityImportConfig o) |
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 |
void |
updatePersisted(IEntityContext ec)
Updates the persisted entity if existing based on the entity represented by this config
|
de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
IEntity that should be importedvoid setEntity(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
entity - IEntity that should be importedde.xima.cmn.dao.interfaces.IEntity<Long> getPersisted()
IEntity already existing entityde.xima.cmn.dao.interfaces.IEntity<Long> getEntityToOverride()
IEntity that should be overridden instead of the persistedvoid setEntityToOverride(de.xima.cmn.dao.interfaces.IEntity<Long> entityToOverride)
entityToOverride - IEntity that should be overridden instead of the persistedClass<?> getEntityClass()
Set<IEntityDependency> getDependencies()
List of all the dependencies to this entityEEntityConflictResolveAction getConflictResolveAction()
EEntityConflictResolveAction specifying what to do if the entity already existsvoid setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)
conflictResolveAction - EEntityConflictResolveAction specifying what to do if the entity already
existsboolean isEntityExists()
true if the given entity already exists (based on UUID and its context)boolean isImported()
void setImported(boolean imported)
true if the entity has been importedString getImportJson()
void resolveDependencies(IEntityContext ec)
ec - IEntityContext to be usedvoid updatePersisted(IEntityContext ec)
ec - IEntityContext to be used for updating the persisted entitydefault int compareTo(IEntityImportConfig o)
compareTo in interface Comparable<IEntityImportConfig>Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.