public class ExportData extends Object
Modifier and Type | Field and Description |
---|---|
static BBjString |
ClientLocale$
Locale of the client
|
static BBjString |
ProgDirectory$
Program directory
|
static BBjString |
PropDirectory$
Prop directory which contains the resource bundle
|
static BBjThinClient |
ThinClient!
BBjThinClient object
|
static BBTranslator |
Translator!
Translator used to obtain translations
|
Constructor and Description |
---|
ExportData() |
Modifier and Type | Method and Description |
---|---|
static void |
exportToClientFile(BBjRecordSet p_recordSet!,
BBjString p_clientFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a BBjRecordSet to a client file
|
static void |
exportToClientFile(BBjVector p_colData!,
BBjVector p_rowData!,
BBjString p_clientFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports column and row (grid) data to a client file
|
static void |
exportToClientFile(DefaultCategoryDataset p_categoryDataSet!,
BBjString p_clientFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a DefaultCategoryDataset to a client file
|
static void |
exportToClientFile(DefaultPieDataset p_pieDataSet!,
BBjString p_clientFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a DefaultPieDataset to a client file
|
static void |
exportToClientFile(XYSeriesCollection p_xySeriesCollection!,
BBjString p_clientFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a XYSeriesCollection to a client file
|
static void |
exportToServerFile(BBjRecordSet p_recordSet!,
BBjString p_serverFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a BBjRecordSet to a server file
|
static void |
exportToServerFile(BBjVector p_colData!,
BBjVector p_rowData!,
BBjString p_serverFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports column and row (grid) data to a server file
|
static void |
exportToServerFile(DefaultCategoryDataset p_categoryDataSet!,
BBjString p_serverFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a DefaultCategoryDataset to a server file
|
static void |
exportToServerFile(DefaultPieDataset p_pieDataSet!,
BBjString p_serverFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a DefaultPieDataset to a server file
|
static void |
exportToServerFile(XYSeriesCollection p_seriesCollection!,
BBjString p_serverFile$,
BBjString p_fieldDelimiter$,
BBjString p_recordDelimiter$,
BBjString p_textQualifier$)
Exports data from a XYSeriesCollection to a server file
|
static BBjString |
getClientSlash()
Returns the last record delimiter used
|
static BBjString |
getLastExportDir()
Returns the last export directory used
|
static BBjString |
getLastFieldDelimiter()
Returns the last field delimiter used
|
static BBjString |
getLastRecordDelimiter()
Returns the last record delimiter used
|
static BBjNumber |
getLastSaveAsDefault()
Returns the last save as default value
|
static BBjString |
getLastTextQualifier()
Returns the last text qualifier used
|
static BBjString |
getTranslation(BBjString p_translationKey$)
Returns a translation value, given a translation key
|
static void |
openExportFile(BBjString p_exportFile$)
Opens the passed export file.
|
static void |
setLastExportDir(BBjString p_lastExportDir$)
Sets the last export directory used.
|
static void |
setLastFieldDelimiter(BBjString p_lastFieldDelimiter$)
Sets the last field delimiter used.
|
static void |
setLastRecordDelimiter(BBjString p_lastRecordDelimiter$)
Sets the last record delimiter used.
|
static void |
setLastSaveAsDefault(BBjNumber p_lastSaveAsDefault)
Sets the last save as default used.
|
static void |
setLastTextQualifier(BBjString p_lastTextQualifier$)
Sets the last text qualifier used.
|
static void |
writeToClientFile(BBjString p_clientFile$,
BBjString p_exportString$)
Creates a client export file and set it's contents to the passed string
|
static void |
writeToServerFile(BBjString p_serverFile$,
BBjString p_exportString$)
Creates a server export file and set it's contents to the passed string
|
public static BBjThinClient ThinClient!
public static BBjString ClientLocale$
public static BBjString ProgDirectory$
public static BBjString PropDirectory$
public static BBTranslator Translator!
public static void exportToServerFile(BBjVector p_colData!, BBjVector p_rowData!, BBjString p_serverFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_colData!
- BBjVector which contains column header datap_rowData!
- BBjVector which contains the row datap_serverFile$
- Name of the server file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToServerFile(BBjRecordSet p_recordSet!, BBjString p_serverFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_recordSet!
- BBjRecordSet which contains the datap_serverFile$
- Name of the server file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToServerFile(DefaultPieDataset p_pieDataSet!, BBjString p_serverFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_pieDataSet!
- DefaultPieDataset which contains the datap_serverFile$
- Name of the server file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToServerFile(DefaultCategoryDataset p_categoryDataSet!, BBjString p_serverFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_categoryDataSet!
- DefaultCategoryDataset which contains the datap_serverFile$
- Name of the server file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToServerFile(XYSeriesCollection p_seriesCollection!, BBjString p_serverFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_categoryDataSet!
- XYSeriesCollection which contains the datap_serverFile$
- Name of the server file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToClientFile(BBjVector p_colData!, BBjVector p_rowData!, BBjString p_clientFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_colData!
- BBjVector which contains column header datap_rowData!
- BBjVector which contains the row datap_clientFile$
- Name of the client file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToClientFile(BBjRecordSet p_recordSet!, BBjString p_clientFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_recordSet!
- BBjRecordSet which contains the datap_clientFile$
- Name of the client file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToClientFile(DefaultPieDataset p_pieDataSet!, BBjString p_clientFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_pieDataSet!
- DefaultPieDataset which contains the datap_clientFile$
- Name of the client file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToClientFile(DefaultCategoryDataset p_categoryDataSet!, BBjString p_clientFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_categoryDataSet!
- DefaultCategoryDataset which contains the datap_clientFile$
- Name of the client file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void exportToClientFile(XYSeriesCollection p_xySeriesCollection!, BBjString p_clientFile$, BBjString p_fieldDelimiter$, BBjString p_recordDelimiter$, BBjString p_textQualifier$)
p_xySeriesCollection!
- XYSeriesCollection which contains the datap_clientFile$
- Name of the client file to export top_fieldDelimiter$
- Delimtier to use to separate fields in the export file. Typical field delimiters inlcude: comma, space, semicolon, or tabp_recordDelimiter$
- Delimiter to use to separate records in the export file. Typical record delimiters inlcude: CRLF, CR, LFp_textQualifier$
- Character to use to qualify a text (string) field.public static void writeToServerFile(BBjString p_serverFile$, BBjString p_exportString$)
p_serverFile$
- Server file to create (overwrite)p_exportString$
- Formatted export string to write to the server filepublic static void writeToClientFile(BBjString p_clientFile$, BBjString p_exportString$)
p_clientFile$
- Client file to create (overwrite)p_exportString$
- Formatted export string to write to the client filepublic static BBjString getClientSlash()
public static BBjString getTranslation(BBjString p_translationKey$)
p_translationKey$
- Translation key to get the associated value forpublic static BBjString getLastExportDir()
public static BBjString getLastFieldDelimiter()
public static BBjString getLastRecordDelimiter()
public static BBjString getLastTextQualifier()
public static BBjNumber getLastSaveAsDefault()
public static void setLastExportDir(BBjString p_lastExportDir$)
p_lastExportDir$
- Specifies the last export diretorypublic static void setLastFieldDelimiter(BBjString p_lastFieldDelimiter$)
p_lastFieldDelimiter$
- Specifies the last field delimiterpublic static void setLastRecordDelimiter(BBjString p_lastRecordDelimiter$)
p_lastRecordDelimiter$
- Specifies the last record delimiterpublic static void setLastTextQualifier(BBjString p_lastTextQualifier$)
p_lastTextQualifier$
- Specifies the last text qualifierpublic static void setLastSaveAsDefault(BBjNumber p_lastSaveAsDefault)
p_lastSaveAsDefault
- Specify 1 to save as default, otherwise 0public static void openExportFile(BBjString p_exportFile$)
p_exportFile$
- Specifies the export file to open