public class EntityDependencyUpdater extends Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
updateDependencies(List<IEntityImportConfig<?>> importConfigs,
                  de.xima.cmn.dao.interfaces.IEntity<Long> newEntity,
                  UUID oldUuid)
Deprecated.  
 | 
static void | 
updateDependencies(List<IEntityImportConfig<?>> importConfigs,
                  de.xima.cmn.dao.interfaces.IEntity<Long> newEntity,
                  UUID originalUuid,
                  String originalName,
                  Long originalId)
Updates the references to an entity 
 | 
static <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> | 
updateDependencies(List<IEntityImportConfig<?>> importConfigs,
                  IEntityImportConfig<?> updateConfig)
Updates the references to an entity 
 | 
static void | 
updateImportConfigFromDb(IEntityContext ec,
                        IEntityImportConfig<?> config)  | 
static void | 
updateImportConfigs(List<IEntityImportConfig<?>> configsToUpdate,
                   de.xima.cmn.dao.interfaces.IEntity<Long> entityToAdd)
Adds the given entity to the appropriate entity fields of the import configs 
 | 
public static final void updateImportConfigs(List<IEntityImportConfig<?>> configsToUpdate, de.xima.cmn.dao.interfaces.IEntity<Long> entityToAdd) throws Exception
public static final void updateImportConfigFromDb(IEntityContext ec, IEntityImportConfig<?> config) throws Exception
Exceptionpublic static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> void updateDependencies(List<IEntityImportConfig<?>> importConfigs, IEntityImportConfig<?> updateConfig) throws Exception
importConfigs - IEntityImportConfigs for which the dependencies should be updatedupdateConfig - IEntityImportConfig whose references should be updatedException - on errors while updating the dependenciespublic static final void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID originalUuid, String originalName, Long originalId) throws Exception
importConfigs - IEntityImportConfigs for which the dependencies should be updatednewEntity - IEntity new entity that should be referencedoriginalUuid - UUID UUID of the dependency that should be updatedoriginalName - String Name of the dependency that should be updatedoriginalId - Long ID of the dependency that should be updatedException - on errors while updating the dependencies@Deprecated public static final void updateDependencies(List<IEntityImportConfig<?>> importConfigs, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity, UUID oldUuid) throws Exception
importConfigs - IEntityImportConfigs for which the dependencies should be updatednewEntity - IEntity new entity that should be referencedoldUuid - UUID UUID of the dependency that should be updatedException - on errors while updating the dependenciesCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.