public interface IInputData
Modifier and Type | Method and Description |
---|---|
void |
addRow(IRow r)
Adds a new row to the chart input data.
|
void |
deleteRow(int rowId)
Delete a record(row) from the chart input data.
|
java.lang.String |
getClassFile()
Gets the name of the input class file used to create the chart.
|
IColumnMap |
getColumnMap()
Returns the data column mapping information.
|
IResultSet |
getData()
Returns the IResultSet object containing the input chart data.
|
IDatabaseInfo |
getDatabaseInfo()
Gets the database info used for plotting the chart.
|
java.lang.String |
getDataFile()
Gets the name of the input data file used to create the chart.
|
java.lang.String |
getDTDFile()
Gets the name of the input dtd file used to create the chart.
|
quadbase.common.util.internal.ExcelFileInfo |
getExcelFileInfo()
Gets the Excel info used for the chart.
|
java.lang.String |
getQueryFilename()
Gets a query file (*.qry) for plotting the chart.
|
IRow |
getRow(int rowId)
Gets the specified row data from the chart.
|
int |
getRowCount()
Returns the total number of rows in the input data.
|
quadbase.common.paramquery.SalesForceQueryFileInfo |
getSalesForceQueryInfo()
Gets the SalesForce info used for the chart.
|
ISpreadSheetModel |
getSpreadSheetModel()
Returns the spread sheet model for the chart, if one is set.
|
int[] |
getTransposedColumn()
This method returns the transposed columns for spreadsheet format
|
java.lang.String |
getXMLFile()
Gets the name of the input xml file used to create the chart.
|
XMLFileQueryInfo |
getXMLFileQueryInfo()
Gets the xml file query info used to create the chart.
|
boolean |
isSpreadSheetFormat()
This flag notifies that the input result set should be treated as a spreadsheet.
|
int |
matchRecord(IRow r)
Get the row number containing the record that matches the input row.
|
IQueryFileInfo |
readQueryFile(java.lang.String filename)
Reads a query file (*.qry) and returns a IQueryFileInfo object.
|
void |
setClassFile(java.lang.String className)
Sets the input class file, which is used to create a chart.
|
void |
setColumnMap(IColumnMap info)
Set the chart column mapping.
|
void |
setData(IResultSet rs)
Sets the input data for the chart using an IResultSet object.
|
void |
setDatabaseInfo(IDatabaseInfo db)
Sets the input database information, which is used to create a chart.
|
void |
setDatabaseInfo(IDatabaseInfo db,
boolean getNewData)
Sets the input database information, which is used to create a chart.
|
void |
setDataFile(java.lang.String fileName)
Sets the input data file, which is used to create a chart.
|
void |
setDataFile(java.lang.String fileName,
java.lang.String encoding)
Sets the input data file, which is used to create a chart.
|
void |
setExcelFileInfo(quadbase.common.util.internal.ExcelFileInfo excelInfo)
Sets the Excel info for the chart.
|
void |
setQueryFilename(java.lang.String filename)
Sets a query file (*.qry) for plotting the chart.
|
void |
setSalesForceQueryInfo(quadbase.common.paramquery.SalesForceQueryFileInfo sfQueryInfo)
Sets the SalesForce info for the chart.
|
void |
setSpreadSheetFormat(boolean b)
This flag notifies the chart that the input result set should be treated as a spreadsheet.
|
void |
setSpreadSheetFormat(boolean b,
int[] transposedColumn)
This flag notifies the chart that the input result set should be treated as a spreadsheet.
|
void |
setSpreadSheetModel(ISpreadSheetModel sheet)
Sets the chart's spread sheet model to the given object.
|
void |
setXMLFile(java.lang.String xmlName)
Sets the input xml file, which is used to create a chart.
|
void |
setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo)
Sets the xml file query info, which is used to create a chart.
|
void |
updateRow(int rowId,
IRow r)
Update the specified row in the chart.
|
IColumnMap getColumnMap()
Associated QbChart property: DATACOLUMN
IColumnMap
void setColumnMap(IColumnMap info)
info
- An instance of IColumnMap containing the column mappings.IColumnMap
,
getColumnMap()
IDatabaseInfo getDatabaseInfo()
Associated QbChart property: PLOTDATA
IDatabaseInfo
,
IQueryFileInfo
void setDatabaseInfo(IDatabaseInfo db) throws java.lang.Exception
Associated QbChart property: PLOTDATA
db
- An IDatabaseInfo implementation object containing the database connect info and
search query.java.lang.Exception
IDatabaseInfo
,
IQueryFileInfo
void setDatabaseInfo(IDatabaseInfo db, boolean getNewData) throws java.lang.Exception
Associated QbChart property: PLOTDATA
db
- An IDatabaseInfo implementation object containing the database connect info and
search query.getNewData
- : indicate if it is required to retrieve new data from the data source.java.lang.Exception
java.lang.String getQueryFilename()
IDatabaseInfo
,
IQueryFileInfo
void setQueryFilename(java.lang.String filename) throws java.lang.Exception
filename
- A query file name with extension *.qryjava.lang.Exception
IDatabaseInfo
,
IQueryFileInfo
IQueryFileInfo readQueryFile(java.lang.String filename) throws java.lang.Exception
filename
- A query file name with extension *.qryjava.lang.Exception
void setDataFile(java.lang.String fileName) throws java.io.IOException
Associated QbChart property: PLOTDATA
fileName
- The name of the input data file.java.io.IOException
void setDataFile(java.lang.String fileName, java.lang.String encoding) throws java.io.IOException
fileName
- The name of the input data file.encoding
- The encoding of the filejava.io.IOException
java.lang.String getDataFile()
void setClassFile(java.lang.String className) throws java.io.IOException
className
- The name of the input class.java.io.IOException
java.lang.String getClassFile()
void setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo)
xmlInfo
- The XMLFileQueryInfo.XMLFileQueryInfo getXMLFileQueryInfo()
void setXMLFile(java.lang.String xmlName) throws java.io.IOException
xmlName
- The name of the input xml file.java.io.IOException
java.lang.String getXMLFile()
java.lang.String getDTDFile()
boolean isSpreadSheetFormat()
Such a transformation is useful when the various columns in a result set from a spreadsheet (e.g. Excel) need to be treated as different series for the same data category (denoted by the first column in the set). Note that the data types of all the columns (except the first) must be numeric and of the same type.
int[] getTransposedColumn()
void setSpreadSheetFormat(boolean b)
ISpreadSheetFormat()
for details.b
- the status of the spreadsheet formatisSpreadSheetFormat()
,
ISpreadSheetFormat
void setSpreadSheetFormat(boolean b, int[] transposedColumn)
ISpreadSheetFormat()
for details.b
- the status of the spreadsheet formattransposedColumn
- - transposed column indexisSpreadSheetFormat()
,
ISpreadSheetFormat
void addRow(IRow r)
Associated QbChart property: ADD_RECORD
r
- An object of type quadbase.util.IRowIRow
void deleteRow(int rowId)
Associated QbChart property: DEL_RECORD
rowId
- The row number to delete.void updateRow(int rowId, IRow r)
Associated QbChart property: UPDATE_RECORD
rowId
- The row number to updater
- The new row values.IRow
IRow getRow(int rowId)
Associated QbChart property: GET_RECORD
rowId
- The row number.IRow
int getRowCount()
Associated QbChart property: GET_NOOF_RECORD
int matchRecord(IRow r)
Associated QbChart property: GET_RECORDNO
r
- The IRow object for which the row number is desired.IRow
IResultSet getData()
IResultSet
void setData(IResultSet rs) throws java.lang.Exception
rs
- The IResultSet objectjava.lang.Exception
IResultSet
ISpreadSheetModel getSpreadSheetModel()
ISpreadSheetModel
void setSpreadSheetModel(ISpreadSheetModel sheet)
sheet
- the spreadsheet model objectISpreadSheetModel
quadbase.common.paramquery.SalesForceQueryFileInfo getSalesForceQueryInfo()
SalesForceQueryFileInfo
void setSalesForceQueryInfo(quadbase.common.paramquery.SalesForceQueryFileInfo sfQueryInfo) throws java.lang.Exception
sfQueryInfo
- SalesForce data source informationjava.lang.Exception
- if an error occurredSalesForceQueryFileInfo
quadbase.common.util.internal.ExcelFileInfo getExcelFileInfo()
ExcelFileInfo
void setExcelFileInfo(quadbase.common.util.internal.ExcelFileInfo excelInfo) throws java.lang.Exception
excelInfo
- Excel data source informationjava.lang.Exception
- if an error occurredExcelFileInfo