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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create SQL insert script for povoid
export
(GridTab gridTab, List<GridTab> childs, boolean isCurrentRowOnly, File file, int indxDetailSelected) export gridTab data to fileprotected PO
Load PO by record ID or UUIDgetSuggestedFileName
(GridTab gridTab) boolean
boolean
isExportableTab
(GridTab gridTab) Check if exported support the export of a child tabboolean
int
Maximum 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:IGridTabExporter
export gridTab data to file- Specified by:
export
in interfaceIGridTabExporter
indxDetailSelected
- 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:
getFileExtension
in interfaceIGridTabExporter
- Returns:
- file extension (csv, zip, ect)
-
getFileExtensionLabel
- Specified by:
getFileExtensionLabel
in interfaceIGridTabExporter
- Returns:
- label for file extension
-
getContentType
- Specified by:
getContentType
in interfaceIGridTabExporter
- Returns:
- mime content type
-
getSuggestedFileName
- Specified by:
getSuggestedFileName
in interfaceIGridTabExporter
- Returns:
- suggested file name
-
isExportableTab
Description copied from interface:IGridTabExporter
Check if exported support the export of a child tab- Specified by:
isExportableTab
in interfaceIGridTabExporter
- Returns:
- true if export is supported, false otherwise
-
isAdvanced
public boolean isAdvanced()- Specified by:
isAdvanced
in interfaceIGridTabExporter
- Returns:
- true if exporter is available to role with advanced access only
-
isExportChildTabsForCurrentRowOnly
public boolean isExportChildTabsForCurrentRowOnly()- Specified by:
isExportChildTabsForCurrentRowOnly
in 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:IGridTabExporter
Maximum deep of child tab supported by the exporter- Specified by:
maxDeepOfChildTab
in interfaceIGridTabExporter
- Returns:
- > 0 for maximum level of deep, <= 0 for unlimited level of deep
-