|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.export.TextExport
TextExport class. This object exports the data from the specified data access object according to the specified parameters
| Field Summary | |
static java.lang.String |
EXPORT_FORMAT_CSVA constant specifying the export format as CSV. |
static java.lang.String |
EXPORT_FORMAT_TAB_DELIMITEDA constant specifying the export format as tab delimited. |
static java.lang.String |
EXPORT_PAGEDIM_ALLA constant specifying the export range as all combinations of page dimension members |
static java.lang.String |
EXPORT_PAGEDIM_CURRENTA constant specifying the export range as currently selected page dimension members |
static java.lang.String |
EXPORT_PAGEDIM_SELECTEDA constant specifying the export range as selected combinations of page dimension members. |
| Constructor Summary | |
TextExport(DataAccess dataAccess, DataDirector dataDirector, java.io.PrintWriter output)Constructs a TextExport object. | |
TextExport(DataAccess dataAccess, DataDirector dataDirector, java.io.PrintWriter output, java.lang.String exportFormat, java.lang.String exportRange)Constructs a TextExport object. | |
| Method Summary | |
void |
export()Exports the data contained by the specified DataAccess object for the specified range and export format. |
DataAccess |
getDataAccess()Retrieves the DataAccess object containing to the data to be exported. |
DataDirector |
getDataDirector()Retrieves the DataDirector object that allows the data contained in the DataAccess to be manipulated. |
java.lang.String |
getDataType()Retrieves the data type to be exported. |
java.lang.String |
getExportFootnote()Retrieves the export footnote. |
java.lang.String |
getExportFormat()Retrieves the export format. |
java.lang.String |
getExportRange()Retrieves the export range. |
java.lang.String |
getExportSubtitle()Retrieves the export subtitle. |
java.lang.String |
getExportTitle()Retrieves the export title. |
java.lang.String |
getLayerMetadataLabelType()Retrieves the layer metadata label type. |
java.lang.String |
getMemberMetadataLabelType()Retrieves the member metadata label type. |
java.io.PrintWriter |
getOutput()Retrieve the output object into which the data is exported to. |
ViewFormat |
getViewFormat()Retrieve the view format object that allows the number formatting for the data to be exported |
static boolean |
isSupportedDataType(java.lang.String dataType)Checks if the specified data type is supported by the TextObject. |
static boolean |
isSupportedExportFormat(java.lang.String exportFormat)Checks if the specified export format is supported by the TextObject. |
static boolean |
isSupportedExportRange(java.lang.String exportRange)Checks if the specified export range is supported by the TextObject. |
static boolean |
isSupportedLayerMetadataLabelType(java.lang.String layerMetadataLabelType)Checks if the specified layer metadata label type is supported by the TextObject. |
static boolean |
isSupportedMemberMetadataLabelType(java.lang.String memberMetadataLabelType)Checks if the specified member metadata label type is supported by the TextObject. |
void |
setDataAccess(DataAccess dataAccess)Sets the DataAccess object that acts as the data provider. |
void |
setDataDirector(DataDirector dataDirector)Sets the DataDirector object that allows the data provider to be manipulated. |
void |
setExportFootnote(java.lang.String exportFootnote)Sets the export footnote. |
void |
setExportFormat(java.lang.String exportFormat)Sets the export format. |
void |
setExportHPos(java.util.Vector listExportHPos)Sets the page dimension member HPos's for which the data needs to be exported |
void |
setExportQDRs(java.util.Vector listExportQDRs)Sets the page dimension member QDR's for which the data needs to be exported |
void |
setExportRange(java.lang.String exportRange)Sets the export range. |
void |
setExportSubtitle(java.lang.String exportSubtitle)Sets the export subtitle. |
void |
setExportTitle(java.lang.String exportTitle)Sets the export title. |
void |
setLayerMetadataLabelType(java.lang.String layerMetadataLabelType)Sets the layer metadata label type |
void |
setMemberMetadataLabelType(java.lang.String memberMetadataLabelType)Sets the member metadata label type |
void |
setOutput(java.io.PrintWriter output)Sets the output object to which the export data is written |
void |
setViewFormat(ViewFormat viewFormat)Sets the view format object for number formatting of the export data |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.dss.util.DataDirectorListener |
viewDataAvailable, viewDataChanged, waitDataAvailable |
| Field Detail |
public static final java.lang.String EXPORT_FORMAT_CSV
public static final java.lang.String EXPORT_FORMAT_TAB_DELIMITED
public static final java.lang.String EXPORT_PAGEDIM_ALL
public static final java.lang.String EXPORT_PAGEDIM_CURRENT
public static final java.lang.String EXPORT_PAGEDIM_SELECTED
| Constructor Detail |
public TextExport(DataAccess dataAccess,
DataDirector dataDirector,
java.io.PrintWriter output)
throws java.lang.IllegalArgumentException
dataAccess - The DataAccess object containing the data to be exporteddataDirector - The DataDirector object used to change the current page for the data access.output - The PrintWriter object to output the export to.java.lang.IllegalArgumentException - If an illegal argument is specified
public TextExport(DataAccess dataAccess,
DataDirector dataDirector,
java.io.PrintWriter output,
java.lang.String exportFormat,
java.lang.String exportRange)
throws java.lang.IllegalArgumentException
dataAccess - The DataAccess object containing the data to be exporteddataDirector - The DataDirector object used to change the current page for the data access.output - The PrintWriter object to output the export to.exportFormat - The format to export the data to. Valid values are constants EXPORT_FORMAT_CSV and EXPORT_FORMAT_TAB_DELIMITED.exportRange - The range to export the data for. Valid values are constants EXPORT_PAGEDIM_ALL, EXPORT_PAGEDIM_CURRENT and EXPORT_PAGEDIM_SELECTEDjava.lang.IllegalArgumentException - If an illegal argument is specified| Method Detail |
public void export()
throws java.lang.Exception
DataAccess object for the specified range and export format.java.lang.Exception - If the export was unsuccessful.public DataAccess getDataAccess()
DataAccess object containing to the data to be exported.DataAccess object containing to the data to be exported.public DataDirector getDataDirector()
DataDirector object that allows the data contained in the DataAccess to be manipulated.DataDirector object that allows the data contained in the DataAccess to be manipulated.public java.lang.String getDataType()
public java.lang.String getExportFormat()
public java.lang.String getExportRange()
public java.lang.String getLayerMetadataLabelType()
public java.lang.String getMemberMetadataLabelType()
public java.io.PrintWriter getOutput()
public ViewFormat getViewFormat()
ViewFormat objectpublic java.lang.String getExportTitle()
public java.lang.String getExportSubtitle()
public java.lang.String getExportFootnote()
public static boolean isSupportedDataType(java.lang.String dataType)
dataType - The data type to be checkedtrue if the data type is supported, false otherwisepublic static boolean isSupportedExportFormat(java.lang.String exportFormat)
exportFormat - The export format to be checkedtrue if the export format is supported, false otherwisepublic static boolean isSupportedExportRange(java.lang.String exportRange)
exportRange - The export range to be checkedtrue if the export range is supported, false otherwisepublic static boolean isSupportedLayerMetadataLabelType(java.lang.String layerMetadataLabelType)
layerMetadataLabelType - The metadata label type to be checkedtrue if the layer metadata label type is supported, false otherwisepublic static boolean isSupportedMemberMetadataLabelType(java.lang.String memberMetadataLabelType)
memberMetadataLabelType - The metadata label type to be checkedtrue if the layer metadata label type is supported, false otherwise
public void setDataAccess(DataAccess dataAccess)
throws java.lang.IllegalArgumentException
DataAccess object that acts as the data provider.dataAccess - The DataAccess objectjava.lang.IllegalArgumentException - If an invalid DataAccess object is specified
public void setDataDirector(DataDirector dataDirector)
throws java.lang.IllegalArgumentException
DataDirector object that allows the data provider to be manipulated.dataDirector - The DataDirector objectjava.lang.IllegalArgumentException - If an invalid DataDirector object is specified
public void setExportFormat(java.lang.String exportFormat)
throws java.lang.IllegalArgumentException
exportFormat - The export format. Valid values are constants EXPORT_FORMAT_CSV and EXPORT_FORMAT_TAB_DELIMITEDjava.lang.IllegalArgumentException - If an invalid export format is specifiedpublic void setExportQDRs(java.util.Vector listExportQDRs)
listExportQDRs - The list of QDR's specifying the page dimension members for which the data needs to be exportedpublic void setExportHPos(java.util.Vector listExportHPos)
listExportHPos - The list of HPos's specifying the page dimension members for which the data needs to be exported
public void setExportRange(java.lang.String exportRange)
throws java.lang.IllegalArgumentException
exportRange - The export range. Valid values are constants EXPORT_PAGEDIM_ALL, EXPORT_PAGEDIM_CURRENT and EXPORT_PAGEDIM_SELECTEDjava.lang.IllegalArgumentException - If an invalid export range is specified
public void setLayerMetadataLabelType(java.lang.String layerMetadataLabelType)
throws java.lang.IllegalArgumentException
layerMetadataLabelType - The layer metadata label type. Valid values are constants LayerMetadataMap.LAYER_METADATA_SHORTLABEL, LayerMetadataMap.LAYER_METADATA_MEDIUMLABEL and LayerMetadataMap.LAYER_METADATA_LONGLABELjava.lang.IllegalArgumentException - If an invalid layer metadata label type is specified
public void setMemberMetadataLabelType(java.lang.String memberMetadataLabelType)
throws java.lang.IllegalArgumentException
memberMetadataLabelType - The member metadata label type. Valid values are constants MetadataMap.METADATA_SHORTLABEL, MetadataMap.METADATA_MEDIUMLABEL and MetadataMap.METADATA_LONGLABELjava.lang.IllegalArgumentException - If an invalid member metadata label type is specified
public void setOutput(java.io.PrintWriter output)
throws java.lang.IllegalArgumentException
output - The PrintWriter object to which the exported data is written to.java.lang.IllegalArgumentException - If an invalid output object is specifiedpublic void setViewFormat(ViewFormat viewFormat)
viewFormat - The ViewFormat for formatting the number datapublic void setExportTitle(java.lang.String exportTitle)
exportTitle - The export title.public void setExportSubtitle(java.lang.String exportSubtitle)
exportSubtitle - The export subtitle.public void setExportFootnote(java.lang.String exportFootnote)
exportFootnote - The export footnote.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||