|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.storage.jdbc.export.RelationalExcelXMLExporter
public class RelationalExcelXMLExporter
Exporter class that tranforms non multidimensional data into an MS Excel XML data stream .
| Constructor Summary | |
|---|---|
RelationalExcelXMLExporter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getColumnHeaderLine(java.lang.Object[] columnHeaders)
Generates a string containing the values of the column headers to export. |
java.lang.String |
getFileHeader()
Returns what is used as the header of the exported file. |
java.lang.String |
getFileTrailer()
Returns what is used as the trailer of the exported file. |
java.lang.String |
getLine(java.lang.Object rowHeader,
java.lang.Object[] data)
Generates a string containing the values of the rowHeader (if not null) followed by the values of the data to export. |
protected java.lang.String |
getStyleDefinitions()
Returns the style definitions for an Excel XML document. |
protected java.lang.String |
getWorkbookHeader()
Returns the definition of a workbook header for an Excel XML document. |
protected java.lang.String |
getWorkbookTrailer()
Returns the workbook trailer for an Excel XML document. |
protected java.lang.String |
getWorksheetHeader()
Returns the definition of a worksheet header for an Excel XML document. |
protected java.lang.String |
getWorksheetTrailer()
Returns the worksheet trailer for an Excel XML document. |
protected java.lang.String |
objectToString(java.lang.Object value)
Transforms an Object into a String. |
void |
setColumnCount(int columnCount)
Set the number of columns of data to export in the XML file. |
void |
setRowCount(int rowCount)
Set the number of rows of data to export in the XML file. |
protected void |
writeString(java.lang.String str,
java.lang.StringBuffer line)
Writes a string into a StringBuffer. |
| Constructor Detail |
|---|
public RelationalExcelXMLExporter()
| Method Detail |
|---|
public java.lang.String getFileHeader()
RelationalExportInterface
getFileHeader in interface RelationalExportInterfacepublic java.lang.String getColumnHeaderLine(java.lang.Object[] columnHeaders)
RelationalExportInterface
getColumnHeaderLine in interface RelationalExportInterfacecolumnHeaders - The column header objects.
public java.lang.String getLine(java.lang.Object rowHeader,
java.lang.Object[] data)
RelationalExportInterface
getLine in interface RelationalExportInterfacerowHeader - The object holding the row header value.data - The object holding the data values.
public java.lang.String getFileTrailer()
RelationalExportInterface
getFileTrailer in interface RelationalExportInterfacepublic void setRowCount(int rowCount)
ExportExcelXMLInterface
setRowCount in interface ExportExcelXMLInterfacerowCount - the number of rows of data to export in the XML file.public void setColumnCount(int columnCount)
ExportExcelXMLInterface
setColumnCount in interface ExportExcelXMLInterfacecolumnCount - the number of columns of data to export in the XML file.
protected void writeString(java.lang.String str,
java.lang.StringBuffer line)
str - The string to write.line - The StringBuffer to fill.protected java.lang.String getWorkbookHeader()
protected java.lang.String getStyleDefinitions()
protected java.lang.String getWorksheetHeader()
protected java.lang.String getWorksheetTrailer()
protected java.lang.String getWorkbookTrailer()
protected java.lang.String objectToString(java.lang.Object value)
value - The object to transform.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||