public static class TopiaCsvExports.EntityExportContext<T extends TopiaEntityEnum> extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected Collection<TopiaCsvExports.AssociationExportContext<T>> |
associationExportContexts
Association export context for this type of entity.
|
protected File |
entryFile |
protected org.nuiton.csv.ext.RepeatableExport |
export
Exporter object.
|
protected TableMeta<T> |
meta
meta to export.
|
protected Writer |
writer
Where to export datas.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EntityExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
TableMeta<T> meta,
File container) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociationExportContext(AssociationMeta<T> meta,
org.nuiton.csv.ExportModel<TopiaEntity> model,
File container) |
void |
close() |
static <T extends TopiaEntityEnum> |
newExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
TableMeta<T> meta,
File container) |
void |
write(TopiaEntity data) |
void |
writeAssociations(TopiaEntity data) |
protected final TableMeta<T extends TopiaEntityEnum> meta
protected final org.nuiton.csv.ext.RepeatableExport export
protected final Writer writer
protected final Collection<TopiaCsvExports.AssociationExportContext<T extends TopiaEntityEnum>> associationExportContexts
protected final File entryFile
protected EntityExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model, TableMeta<T> meta, File container)
public static <T extends TopiaEntityEnum> TopiaCsvExports.EntityExportContext<T> newExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model, TableMeta<T> meta, File container)
public void addAssociationExportContext(AssociationMeta<T> meta, org.nuiton.csv.ExportModel<TopiaEntity> model, File container)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void write(TopiaEntity data) throws Exception
Exceptionpublic void writeAssociations(TopiaEntity data) throws Exception
ExceptionCopyright © 2004–2022 Code Lutin. All rights reserved.