- Enclosing interface:
EntityExport
public static interface EntityExport.Builder
Builds a
EntityExport-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecifies the entities to exportstatic interfaceSpecifies the entity typestatic interfaceSpecifies the export attributesstatic interfaceSpecifies the export output -
Method Summary
Modifier and TypeMethodDescriptioncancel(ObservableState cancel) export()throws aCancelExceptionin case this state is activatedvoidexport()Performs the export
-
Method Details
-
processed
- Parameters:
processed- receives each entity after it's been processed- Returns:
- this
EntityExport.Builder
-
cancel
export()throws aCancelExceptionin case this state is activated- Parameters:
cancel- indicates whether the export should be cancelled- Returns:
- this
EntityExport.Builder
-
export
void export()Performs the exportA referenced entity is fetched only when the entity being exported does not already carry it, with every attribute the export requires.
- Throws:
CancelException- in casecancel(ObservableState)is activatedIllegalStateException- in case no attributes are included, an export of nothing being a configuration errorEntityNotFoundException- in case a foreign key references a row which does not exist, which aborts the export rather than exporting an empty cell
-