Package org.adempiere.impexp
Class GridTabSQLInsertExporter
java.lang.Object
org.adempiere.impexp.GridTabSQLInsertExporter
- All Implemented Interfaces:
IGridTabExporter
Export data as SQL insert statement
- Author:
- hengsin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate SQL insert script for povoidexport(GridTab gridTab, List<GridTab> childs, boolean isCurrentRowOnly, File file, int indxDetailSelected) export gridTab data to fileprotected POLoad PO by record ID or UUIDgetSuggestedFileName(GridTab gridTab) booleanbooleanisExportableTab(GridTab gridTab) Check if exported support the export of a child tabbooleanintMaximum deep of child tab supported by the exporter
-
Constructor Details
-
GridTabSQLInsertExporter
public GridTabSQLInsertExporter()Default constructor
-
-
Method Details
-
export
public void export(GridTab gridTab, List<GridTab> childs, boolean isCurrentRowOnly, File file, int indxDetailSelected) Description copied from interface:IGridTabExporterexport gridTab data to file- Specified by:
exportin interfaceIGridTabExporterindxDetailSelected- index of selected child tab
-
addSQLInsert
Create SQL insert script for po- Parameters:
po-oracles- list to add oracle insert scriptpgs- list to add postgresql insert script
-
getPO
Load PO by record ID or UUID- Parameters:
gridTab-table-row-- Returns:
- PO
-
getFileExtension
- Specified by:
getFileExtensionin interfaceIGridTabExporter- Returns:
- file extension (csv, zip, ect)
-
getFileExtensionLabel
- Specified by:
getFileExtensionLabelin interfaceIGridTabExporter- Returns:
- label for file extension
-
getContentType
- Specified by:
getContentTypein interfaceIGridTabExporter- Returns:
- mime content type
-
getSuggestedFileName
- Specified by:
getSuggestedFileNamein interfaceIGridTabExporter- Returns:
- suggested file name
-
isExportableTab
Description copied from interface:IGridTabExporterCheck if exported support the export of a child tab- Specified by:
isExportableTabin interfaceIGridTabExporter- Returns:
- true if export is supported, false otherwise
-
isAdvanced
public boolean isAdvanced()- Specified by:
isAdvancedin interfaceIGridTabExporter- Returns:
- true if exporter is available to role with advanced access only
-
isExportChildTabsForCurrentRowOnly
public boolean isExportChildTabsForCurrentRowOnly()- Specified by:
isExportChildTabsForCurrentRowOnlyin interfaceIGridTabExporter- Returns:
- true if export of child tabs is supported only when current row only is on.
-
maxDeepOfChildTab
public int maxDeepOfChildTab()Description copied from interface:IGridTabExporterMaximum deep of child tab supported by the exporter- Specified by:
maxDeepOfChildTabin interfaceIGridTabExporter- Returns:
- > 0 for maximum level of deep, <= 0 for unlimited level of deep
-