@GeneratedType(value="net.datenwerke.dtoservices.dtogenerator.DtoAnnotationProcessor") public class Dto2UserGenerator extends java.lang.Object implements Dto2PosoGenerator<UserDto,User>
Constructor and Description |
---|
Dto2UserGenerator(Dto2PosoSupervisorDefaultImpl dto2PosoSupervisor,
<any> dtoServiceProvider,
<any> entityManagerProvider,
ReflectionService reflectionService) |
Modifier and Type | Method and Description |
---|---|
User |
createPoso(UserDto dto)
Creates a new Poso obejct with the data provided by the dto.
|
User |
createUnmanagedPoso(UserDto dto) |
User |
instantiatePoso() |
User |
loadAndMergePoso(UserDto dto) |
User |
loadPoso(UserDto dto)
Loads the poso referenced by the dto.
|
void |
mergePoso(UserDto dto,
User poso) |
void |
mergeUnmanagedPoso(UserDto dto,
User poso) |
void |
postProcessCreate(UserDto dto,
User poso) |
void |
postProcessCreateUnmanaged(UserDto dto,
User poso) |
void |
postProcessInstantiate(User poso) |
void |
postProcessLoad(UserDto dto,
User poso) |
void |
postProcessMerge(UserDto dto,
User poso) |
public Dto2UserGenerator(Dto2PosoSupervisorDefaultImpl dto2PosoSupervisor, <any> dtoServiceProvider, <any> entityManagerProvider, ReflectionService reflectionService)
public User loadPoso(UserDto dto)
Dto2PosoGenerator
loadPoso
in interface Dto2PosoGenerator<UserDto,User>
public User instantiatePoso()
instantiatePoso
in interface Dto2PosoGenerator<UserDto,User>
public User createPoso(UserDto dto) throws ExpectedException
Dto2PosoGenerator
createPoso
in interface Dto2PosoGenerator<UserDto,User>
ExpectedException
public User createUnmanagedPoso(UserDto dto) throws ExpectedException
createUnmanagedPoso
in interface Dto2PosoGenerator<UserDto,User>
ExpectedException
public void mergePoso(UserDto dto, User poso) throws ExpectedException
mergePoso
in interface Dto2PosoGenerator<UserDto,User>
ExpectedException
public void mergeUnmanagedPoso(UserDto dto, User poso) throws ExpectedException
mergeUnmanagedPoso
in interface Dto2PosoGenerator<UserDto,User>
ExpectedException
public User loadAndMergePoso(UserDto dto) throws ExpectedException
loadAndMergePoso
in interface Dto2PosoGenerator<UserDto,User>
ExpectedException
public void postProcessCreate(UserDto dto, User poso)
postProcessCreate
in interface Dto2PosoGenerator<UserDto,User>
public void postProcessCreateUnmanaged(UserDto dto, User poso)
postProcessCreateUnmanaged
in interface Dto2PosoGenerator<UserDto,User>
public void postProcessLoad(UserDto dto, User poso)
postProcessLoad
in interface Dto2PosoGenerator<UserDto,User>
public void postProcessMerge(UserDto dto, User poso)
postProcessMerge
in interface Dto2PosoGenerator<UserDto,User>
public void postProcessInstantiate(User poso)
postProcessInstantiate
in interface Dto2PosoGenerator<UserDto,User>