public class EntityClonerServiceImpl extends java.lang.Object implements EntityClonerService
Constructor and Description |
---|
EntityClonerServiceImpl(<any> entityManagerProvider,
EntityUtils entityUtils) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
cloneEntity(java.lang.Object entity,
java.lang.Class<?> entityClass) |
java.lang.Object |
cloneEntity(java.lang.Object entity,
java.lang.Class<?> entityClass,
ClonerConfig config) |
<T> T |
cloneEntity(T entity) |
<T> T |
cloneEntity(T entity,
ClonerConfig config) |
void |
copyFields(java.lang.Object source,
java.lang.Object target,
ClonerConfig config,
java.util.Map<java.lang.Object,java.lang.Object> clonedInnerEntityCache,
java.util.Map<java.lang.Object,java.util.List<net.datenwerke.rs.utils.entitycloner.EntityClonerServiceImpl.CallbackOnInnerEntityCreation>> loadedReferencedEntityCache,
java.util.Map<java.lang.Object,java.util.List<net.datenwerke.rs.utils.entitycloner.EntityClonerServiceImpl.CallbackOnInnerEntityCreation>> inProcess) |
public EntityClonerServiceImpl(<any> entityManagerProvider, EntityUtils entityUtils)
public <T> T cloneEntity(T entity)
cloneEntity
in interface EntityClonerService
public <T> T cloneEntity(T entity, ClonerConfig config)
cloneEntity
in interface EntityClonerService
public java.lang.Object cloneEntity(java.lang.Object entity, java.lang.Class<?> entityClass)
cloneEntity
in interface EntityClonerService
public java.lang.Object cloneEntity(java.lang.Object entity, java.lang.Class<?> entityClass, ClonerConfig config)
cloneEntity
in interface EntityClonerService
public void copyFields(java.lang.Object source, java.lang.Object target, ClonerConfig config, java.util.Map<java.lang.Object,java.lang.Object> clonedInnerEntityCache, java.util.Map<java.lang.Object,java.util.List<net.datenwerke.rs.utils.entitycloner.EntityClonerServiceImpl.CallbackOnInnerEntityCreation>> loadedReferencedEntityCache, java.util.Map<java.lang.Object,java.util.List<net.datenwerke.rs.utils.entitycloner.EntityClonerServiceImpl.CallbackOnInnerEntityCreation>> inProcess)