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()
ColInfovoid setMapping(ColInfo[] info)
info - An instance of ColInfo containing the column mappings.ColInfoIDatabaseInfo getDatabaseInfo()
IDatabaseInfo,
IQueryFileInfovoid 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.ExceptionIDatabaseInfo,
IQueryFileInfovoid setDatabaseInfo(quadbase.common.util.IDatabaseInfo db,
boolean setNewData)
throws java.lang.Exception
java.lang.Exceptionvoid setDatabaseInfo(quadbase.common.util.IDatabaseInfo db,
boolean setNewData,
boolean sorteddata)
throws java.lang.Exception
java.lang.Exceptionvoid 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.Exceptionvoid 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.Exceptionvoid 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.Exceptionvoid setAllJNDIDatabaseInfo(java.util.Hashtable<java.lang.String,java.lang.String> env,
java.lang.String jndiName)
throws java.lang.Exception
java.lang.Exceptionvoid setJNDIDatabaseInfo(quadbase.common.util.IDatabaseInfo dbinfo,
boolean setNewData,
boolean sorteddata)
throws java.lang.Exception
java.lang.Exceptionvoid 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.Exceptionvoid 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.Exceptionvoid setAllDatabaseInfo(java.sql.Connection conn)
throws java.lang.Exception
conn - the database connection object to usejava.lang.Exceptionvoid 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.Exceptionvoid setAllDatabaseInfo(java.sql.Connection conn,
boolean setNewData,
boolean sorteddata)
throws java.lang.Exception
java.lang.Exceptionvoid replaceColumns(quadbase.reportdesigner.util.ReplaceColumnInfoList infoList)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getQueryFilename()
IDatabaseInfo,
IQueryFileInfovoid setQueryFilename(java.lang.String filename)
throws java.lang.Exception
filename - A query file name with extension *.qryjava.lang.ExceptionIDatabaseInfo,
IQueryFileInfoIQueryFileInfo readQueryFile(java.lang.String filename) throws java.lang.Exception
filename - A query file name with extension *.qryjava.lang.Exceptionvoid setDataFile(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the input data file.java.io.IOExceptionvoid 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.IOExceptionvoid 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.IOExceptionjava.lang.String getDataFile()
void setClassFile(java.lang.String className)
throws java.io.IOException
className - The name of the input class.java.io.IOExceptionvoid 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.IOExceptionvoid 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.IOExceptionjava.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.IOExceptionvoid 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.IOExceptionjava.lang.String getXMLFile()
java.lang.String getDTDFile()
void addRow(IRow r)
r - An object of type quadbase.reportdesigner.util.IRowIRowvoid 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.IRowIRow getRow(int rowId)
rowId - The row number.IRowint getRowCount()
int matchRecord(IRow r)
r - The IRow object for which the row number is desired.IRowIResultSet getData()
IResultSetvoid setData(IResultSet rs) throws java.lang.Exception
rs - The IResultSet objectjava.lang.ExceptionIResultSetvoid setData(IResultSet rs, boolean sortedData) throws java.lang.Exception
rs - The IResultSet objectsortedData - Specify if the result set is sorted.java.lang.ExceptionIResultSetvoid 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.ExceptionIResultSetvoid 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.ExceptionIResultSetISpreadSheetModel getSpreadSheetModel()
ISpreadSheetModelvoid setSpreadSheetModel(ISpreadSheetModel sheet)
sheet - the spreadsheet model objectISpreadSheetModelquadbase.common.paramquery.SalesForceQueryFileInfo getSalesForceQueryInfo()
SalesForceQueryFileInfovoid setSalesForceQueryInfo(quadbase.common.paramquery.SalesForceQueryFileInfo sfQueryInfo)
throws java.lang.Exception
sfQueryInfo - SalesForce data source informationjava.lang.Exception - if an error occurredSalesForceQueryFileInfovoid 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()
ExcelFileInfovoid setExcelFileInfo(quadbase.common.util.internal.ExcelFileInfo excelInfo)
throws java.lang.Exception
excelInfo - Excel data source informationjava.lang.Exception - if an error occurredExcelFileInfo