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