public interface IInputData
Modifier and Type | Method and Description |
---|---|
void |
addRow(IRow r)
Adds a new row to the report input data.
|
void |
deleteRow(int rowId)
Delete a record(row) from the report input data.
|
java.lang.String |
getClassFile()
Gets the name of the input class file used to create the report.
|
IResultSet |
getData()
Returns the IResultSet object containing the input report data.
|
IDatabaseInfo |
getDatabaseInfo()
Gets the database info used for plotting the report.
|
java.lang.String |
getDataFile()
Gets the name of the input data file used to create the report.
|
java.lang.String |
getDTDFile()
Gets the name of the input dtd file used to create the report.
|
quadbase.common.util.internal.ExcelFileInfo |
getExcelFileInfo()
Gets the Excel info used for the report.
|
ColInfo[] |
getMapping()
Returns the data column mapping information.
|
java.lang.String |
getQueryFilename()
Gets a query file (*.qry) for plotting the report.
|
IRow |
getRow(int rowId)
Gets the specified row data from the report.
|
int |
getRowCount()
Returns the total number of rows in the input data.
|
quadbase.common.paramquery.SalesForceQueryFileInfo |
getSalesForceQueryInfo()
Gets the SalesForce info used for the report.
|
ISpreadSheetModel |
getSpreadSheetModel()
Returns the spread sheet model for the report, if one is set.
|
java.lang.String |
getXMLFile()
Gets the name of the input xml file used to create the report.
|
XMLFileQueryInfo |
getXMLFileQueryInfo()
Gets the xml file query info used to create the report.
|
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 |
replaceAllDatabaseInfo(java.util.Hashtable<java.lang.String,java.util.Properties> databaseMap,
java.util.Properties defaultVal,
boolean setNewData)
Replaces all database information associated with this report.
|
void |
replaceAllDatabaseInfo(java.lang.String originalUrl,
java.lang.String url,
java.lang.String driver,
java.lang.String usr,
java.lang.String pwd,
boolean setNewData)
Replaces all database information associated with this report.
|
void |
replaceColumns(quadbase.reportdesigner.util.ReplaceColumnInfoList infoList) |
void |
setAllDatabaseInfo(java.sql.Connection conn)
Sets all database connection(s) associated with this report.
|
void |
setAllDatabaseInfo(java.sql.Connection conn,
boolean setNewData)
Sets all database connection(s) associated with this report.
|
void |
setAllDatabaseInfo(java.sql.Connection conn,
boolean setNewData,
boolean sorteddata) |
void |
setAllDatabaseInfo(java.lang.String url,
java.lang.String driver,
java.lang.String usr,
java.lang.String pwd)
Sets all database information associated with this report.
|
void |
setAllDatabaseInfo(java.lang.String url,
java.lang.String driver,
java.lang.String usr,
java.lang.String pwd,
boolean setNewData)
Sets all database information associated with this report.
|
void |
setAllDatabaseInfo(java.lang.String url,
java.lang.String driver,
java.lang.String usr,
java.lang.String pwd,
boolean setNewData,
boolean sorteddata) |
void |
setAllJNDIDatabaseInfo(java.util.Hashtable<java.lang.String,java.lang.String> env,
java.lang.String jndiName) |
void |
setAllSalesForceInfo(java.lang.String serverUrl,
java.lang.String sessionId)
Sets SalesForce Server URL and Session ID associated with this report.
|
void |
setClassFile(java.lang.String className)
Sets the input class file, which is used to create a report.
|
void |
setClassFile(java.lang.String className,
boolean sortedData)
Sets the input class file, which is used to create a report.
|
void |
setClassFile(java.lang.String className,
boolean sortedData,
boolean showPromptDialog)
Sets the input class file, which is used to create a report.
|
void |
setData(IResultSet rs)
Sets the input data for the report using an IResultSet object.
|
void |
setData(IResultSet rs,
boolean sortedData)
Sets the input data for the report using an IResultSet object.
|
void |
setData(IResultSet rs,
boolean sortedData,
boolean optimizeMemory)
Sets the input data for the report using an IResultSet object.
|
void |
setData(IResultSet rs,
boolean sortedData,
boolean optimizeMemory,
java.lang.Object[] distinctValue)
Sets the input data for the report using an IResultSet object.
|
void |
setDatabaseInfo(quadbase.common.util.IDatabaseInfo db)
Sets the input database information, which is used to create a report.
|
void |
setDatabaseInfo(quadbase.common.util.IDatabaseInfo db,
boolean setNewData) |
void |
setDatabaseInfo(quadbase.common.util.IDatabaseInfo db,
boolean setNewData,
boolean sorteddata) |
void |
setDataFile(java.lang.String fileName)
Sets the input data file, which is used to create a report.
|
void |
setDataFile(java.lang.String fileName,
boolean sortedData)
Sets the input data file, which is used to create a report.
|
void |
setDataFile(java.lang.String fileName,
boolean sortedData,
java.lang.String encoding)
Sets the input data file, which is used to create a report.
|
void |
setExcelFileInfo(quadbase.common.util.internal.ExcelFileInfo excelInfo)
Sets the Excel info for the report.
|
void |
setJNDIDatabaseInfo(quadbase.common.util.IDatabaseInfo dbinfo,
boolean setNewData,
boolean sorteddata) |
void |
setMapping(ColInfo[] info)
Set the report column mapping.
|
void |
setQueryFilename(java.lang.String filename)
Sets a query file (*.qry) for plotting the report.
|
void |
setSalesForceQueryInfo(quadbase.common.paramquery.SalesForceQueryFileInfo sfQueryInfo)
Sets the SalesForce info for the report.
|
void |
setSpreadSheetModel(ISpreadSheetModel sheet)
Sets the report'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 report.
|
void |
setXMLFile(java.lang.String xmlName,
boolean sortedData)
Sets the input xml file, which is used to create a report.
|
void |
setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo)
Sets the xml file query info, which is used to create a report.
|
void |
setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo,
boolean sortedData)
Sets the xml file query info, which is used to create a report.
|
void |
updateRow(int rowId,
IRow r)
Update the specified row in the report.
|
ColInfo[] getMapping()
ColInfo
void setMapping(ColInfo[] info)
info
- An instance of ColInfo containing the column mappings.ColInfo
IDatabaseInfo getDatabaseInfo()
IDatabaseInfo
,
IQueryFileInfo
void setDatabaseInfo(quadbase.common.util.IDatabaseInfo db) throws java.lang.Exception
db
- An IDatabaseInfo implementation object containing the database connect info and
search query.java.lang.Exception
IDatabaseInfo
,
IQueryFileInfo
void setDatabaseInfo(quadbase.common.util.IDatabaseInfo db, boolean setNewData) throws java.lang.Exception
java.lang.Exception
void setDatabaseInfo(quadbase.common.util.IDatabaseInfo db, boolean setNewData, boolean sorteddata) throws java.lang.Exception
java.lang.Exception
void setAllDatabaseInfo(java.lang.String url, java.lang.String driver, java.lang.String usr, java.lang.String pwd) throws java.lang.Exception
url
- the url that identifies the databasedriver
- the name of the jdbc driver classusr
- the user name to login to this database, or nullpwd
- the password to login to this database, or nulljava.lang.Exception
void setAllDatabaseInfo(java.lang.String url, java.lang.String driver, java.lang.String usr, java.lang.String pwd, boolean setNewData) throws java.lang.Exception
url
- the url that identifies the databasedriver
- the name of the jdbc driver classusr
- the user name to login to this database, or nullpwd
- the password to login to this database, or nullsetNewData
- whether to hit the database to set new data for the reportjava.lang.Exception
void setAllDatabaseInfo(java.lang.String url, java.lang.String driver, java.lang.String usr, java.lang.String pwd, boolean setNewData, boolean sorteddata) throws java.lang.Exception
java.lang.Exception
void setAllJNDIDatabaseInfo(java.util.Hashtable<java.lang.String,java.lang.String> env, java.lang.String jndiName) throws java.lang.Exception
java.lang.Exception
void setJNDIDatabaseInfo(quadbase.common.util.IDatabaseInfo dbinfo, boolean setNewData, boolean sorteddata) throws java.lang.Exception
java.lang.Exception
void replaceAllDatabaseInfo(java.lang.String originalUrl, java.lang.String url, java.lang.String driver, java.lang.String usr, java.lang.String pwd, boolean setNewData) throws java.lang.Exception
originalUrl
- the original database url to replaceurl
- the url that identifies the databasedriver
- the name of the jdbc driver classusr
- the user name to login to this database, or nullpwd
- the password to login to this database, or nullsetNewData
- whether to hit the database to set new data for the reportjava.lang.Exception
void replaceAllDatabaseInfo(java.util.Hashtable<java.lang.String,java.util.Properties> databaseMap, java.util.Properties defaultVal, boolean setNewData) throws java.lang.Exception
databaseMap
- the map containing previous database url as keys mapped to new database PropertiesdefaultVal
- if a report/chart is using a database url not found in the databaseMap, it will
replace the database information to those contained in defaultVal only if
defaultVal is not null.setNewData
- whether to hit the database to set new data for the reportjava.lang.Exception
void setAllDatabaseInfo(java.sql.Connection conn) throws java.lang.Exception
conn
- the database connection object to usejava.lang.Exception
void setAllDatabaseInfo(java.sql.Connection conn, boolean setNewData) throws java.lang.Exception
conn
- the database connection object to usesetNewData
- whether to hit the database to set new data for the reportjava.lang.Exception
void setAllDatabaseInfo(java.sql.Connection conn, boolean setNewData, boolean sorteddata) throws java.lang.Exception
java.lang.Exception
void replaceColumns(quadbase.reportdesigner.util.ReplaceColumnInfoList infoList) throws java.lang.Exception
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
fileName
- The name of the input data file.java.io.IOException
void setDataFile(java.lang.String fileName, boolean sortedData) throws java.io.IOException
fileName
- The name of the input data file.sortedData
- Specify if the result set is sorted.java.io.IOException
void setDataFile(java.lang.String fileName, boolean sortedData, java.lang.String encoding) throws java.io.IOException
fileName
- The name of the input data file.sortedData
- Specify if the result set is sorted.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
void setClassFile(java.lang.String className, boolean sortedData) throws java.io.IOException
className
- The name of the input class.sortedData
- Specify if the result set is sorted.java.io.IOException
void setClassFile(java.lang.String className, boolean sortedData, boolean showPromptDialog) throws java.io.IOException
className
- The name of the input class.sortedData
- Specify if the result set is sorted.showPromptDialog
- show parameter prompt dialog, false if sub report and the parameter is shared.java.io.IOException
java.lang.String getClassFile()
void setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo)
xmlInfo
- The XMLFileQueryInfo.void setXMLFileQueryInfo(XMLFileQueryInfo xmlInfo, boolean sortedData)
xmlInfo
- The XMLFileQueryInfo.sortedData
- Specify if the result set is sorted.XMLFileQueryInfo getXMLFileQueryInfo()
void setXMLFile(java.lang.String xmlName) throws java.io.IOException
xmlName
- The name of the input xml file.java.io.IOException
void setXMLFile(java.lang.String xmlName, boolean sortedData) throws java.io.IOException
xmlName
- The name of the input xml file.sortedData
- Specify if the result set is sorted.java.io.IOException
java.lang.String getXMLFile()
java.lang.String getDTDFile()
void addRow(IRow r)
r
- An object of type quadbase.reportdesigner.util.IRowIRow
void deleteRow(int rowId)
rowId
- The row number to delete.void updateRow(int rowId, IRow r)
rowId
- The row number to updater
- The new row values.IRow
IRow getRow(int rowId)
rowId
- The row number.IRow
int getRowCount()
int matchRecord(IRow r)
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
void setData(IResultSet rs, boolean sortedData) throws java.lang.Exception
rs
- The IResultSet objectsortedData
- Specify if the result set is sorted.java.lang.Exception
IResultSet
void setData(IResultSet rs, boolean sortedData, boolean optimizeMemory) throws java.lang.Exception
rs
- The IResultSet objectsortedData
- Specify if the result set is sorted.optimizeMemory
- Whether data from database would get obtained in chunks to savejava.lang.Exception
IResultSet
void setData(IResultSet rs, boolean sortedData, boolean optimizeMemory, java.lang.Object[] distinctValue) throws java.lang.Exception
rs
- The IResultSet objectsortedData
- Specify if the result set is sorted.optimizeMemory
- Whether data from database would get obtained in chunks to savedistinctValue
- Distinct value Object array for CrossTab report, used when optimize memory is set
to truejava.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
void setAllSalesForceInfo(java.lang.String serverUrl, java.lang.String sessionId) throws java.lang.Exception
serverUrl
- new Server URLsessionId
- new Session IDjava.lang.Exception
- if error occursquadbase.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