|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dynalivery.harmoni.HarmoniJob
| Field Summary | |
static int |
H_SF_ASCENDING
|
static int |
H_SF_DESCENDING
|
| Constructor Summary | |
HarmoniJob(HarmoniEngine engine,
short handle)
Construct a (report) HarmoniJob object with the given handle. |
|
HarmoniJob(HarmoniJob parent,
short handle)
Construct a (sub-report) HarmoniJob object with the given handle. |
|
| Method Summary | |
boolean |
CheckSelectionFormula()
Checks the selection formula for validity. |
boolean |
ClearServerLog()
Clears the current server logs and starts a fresh log that can be retrieved using GetServerLog() |
void |
Close()
Closes the print job. |
void |
DeleteNthSortField(int sortFieldN)
Delete a given sort field from a report. |
void |
DeleteXmlFile(boolean xmlFileStatus)
Set the deletion option the DOR file in SetPrivateData True by default, if set to false the xml file passed by SetPrivateData will not be deleted. |
HarmoniEngine |
getEngine()
Get the engine that opened this job |
int |
GetHandle()
Get the handle for this job |
short |
GetJobStatus(HarmoniJobInfo info)
This method evaluates the status of a print job. |
java.lang.String |
GetName()
Get the name associated with this job |
HarmoniLogOnInfo |
GetNthTableLogOnInfo(int tableN)
|
java.io.InputStream |
getOutputAsStream(java.lang.String outputFileName)
This method will return an InputStream which contains the requested output name. |
java.lang.String[] |
getOutputFileNames()
This method will return an array of output file names which can be used as the outputFileName parameter of a call to getOutputAsStream. |
HarmoniPrintOptions |
GetPrintOptions()
This method retieves the print options specified for the report |
HarmoniDEVMODE |
GetSelectedPrinter(java.lang.StringBuffer driverName,
java.lang.StringBuffer printerName,
java.lang.StringBuffer portName)
Obtain the selected printer. |
HarmoniPrinterInfo |
GetSelectedPrinterByName(java.lang.StringBuffer printName)
This method returns the printer info for the job |
void |
GetSelectionFormula(java.lang.StringBuffer formulaText)
Get the selection formula used in this job's report. |
java.lang.String |
GetServerLog()
Returns the Server log associated with the current run. |
void |
GetSQLQuery(java.lang.StringBuffer queryBuffer)
Get the SQL query for this job's report. |
short |
GetStatus(HarmoniJobInfo info)
Get the status and progress statistics of a report job. |
void |
OutputTo(java.lang.String outputFileName,
FormatOptions fmtOptions)
Output the job to Saffron |
void |
OutputToPrinter(int copies)
Sets the print destination for this job to be the printer. |
void |
OutputToSaffronHtml(java.lang.String htmlFileName,
HTMLFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(FormatOptions, DestinationOptions) |
void |
OutputToSaffronJPEG(java.lang.String jpegFileName,
RasterFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(DestinationOptions, FormatOptions) |
void |
OutputToSaffronPDF(java.lang.String pdfFileName,
PDFFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(DestinationOptions, FormatOptions) |
void |
OutputToSaffronPNG(java.lang.String pngFileName,
RasterFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(DestinationOptions, FormatOptions) |
void |
OutputToSaffronRTF(java.lang.String rtfFileName,
RTFFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(DestinationOptions, FormatOptions) |
void |
OutputToSaffronSVG(java.lang.String svgFileName,
SVGFormatOptions options)
Deprecated. As of Harmoni 1.0, replaced by OutputTo(DestinationOptions, FormatOptions) |
void |
SelectPrinter(java.lang.String driverName,
java.lang.String printerName,
java.lang.String portName,
HarmoniDEVMODE mode)
Select Printer. |
boolean |
SelectPrinterByName(java.lang.String printerName,
HarmoniPrinterInfo harmoniInfo)
This method sets the given printer for the report. |
void |
SetJobTitle(java.lang.String jobTitle)
Used to log any string which the user desires to the server.log file. |
void |
SetName(java.lang.String jobName)
Set the name associated with this job |
void |
SetNthSortField(int sortFieldN,
java.lang.String name,
int direction)
Change the given sort field's name and direction. |
void |
SetNthTableLogOnInfo(int tableN,
HarmoniLogOnInfo logOnInfo,
boolean propagate)
Sets the SQL connection information for the given table in this job's report. |
java.lang.String |
SetNthTablePrivateDataFromXMLFile(int table,
java.lang.String xmlFileName)
The method reads an XML file from the file system and sets the private data for table N. |
void |
SetPrintOptions(HarmoniPrintOptions options)
Set the Print Options for this report. |
java.io.OutputStream |
SetPrivateData()
This method is useful to set the data for a DOR report when the client wants to write the XML representation of the data to an OutputStream. |
java.lang.String |
SetPrivateData(DORDataSet dod)
Pass your data objects to Harmoni using Data Object Reporting. |
java.io.OutputStream |
SetPrivateData(int table)
This method is useful to set the data for a DOR report when the client wants to write the XML representation of the data to an OutputStream. |
java.lang.String |
SetPrivateData(int table,
DORDataSet dod)
Pass your data objects to Harmoni using Data Object Reporting Returns the absolute file name of this data file on the server. |
java.lang.String |
SetPrivateData(int table,
java.sql.ResultSet rs)
Pass your data objects to Harmoni using Data Object Reporting Returns the absolute file name of this data file on the server. |
java.lang.String |
SetPrivateData(int table,
java.lang.String xmlFileName)
Pass your data objects to Harmoni using Data Object Reporting Returns the absolute file name of this data file on the server. |
java.lang.String |
SetPrivateData(java.sql.ResultSet rs)
Pass your data objects to Harmoni using Data Object Reporting. |
java.lang.String |
SetPrivateData(java.sql.ResultSet rs,
java.sql.ResultSetMetaData md)
Pass your data objects to Harmoni using Data Object Reporting Returns the absolute file name of this data file on the server. |
java.lang.String |
SetPrivateData(java.lang.String xmlFileName)
The method reads an XML file from the file system and sets the private data for table 0.Returns the absolute file name of this data file on the server. |
void |
SetPrivateDataFromMainReport(int subReportTable,
HarmoniJob parent,
int mainReportTable)
The method sets the private data for the sub-report specified from dor data previously passed to the using SetPrivateData. |
void |
SetPrivateDataFromServerMachine(int table,
java.lang.String xmlFileName)
The method sets the private data for the table specified from a xml file already accessible to the report server. |
java.lang.String |
SetPrivateDataFromXMLFile(java.lang.String xmlFileName)
The method reads an XML file from the file system and sets the private data for table 0. |
void |
setRetrieveOutputAsStream(boolean value)
This method informs the report server to retrieve the output as a java input stream. |
void |
setRetrieveOutputToClientDisk(boolean value)
This method informs the report server to retrieve the output files and write them to the client disk. |
void |
SetSelectionFormula(java.lang.String formulaText)
Set the selection formula for this job's report. |
void |
SetSQLQuery(java.lang.String queryString)
Set the SQL query for this job's report. |
void |
Start()
Issue a PEStartPrintJob call for the job. |
boolean |
TestNthTableConnectivity(int tableN)
Test a database table's settings to see if they are valid. |
boolean |
VerifyDatabase()
This method verifies that connection to databases specified in this report are valid. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int H_SF_DESCENDING
public static final int H_SF_ASCENDING
| Constructor Detail |
public HarmoniJob(HarmoniEngine engine,
short handle)
engine - The HarmoniEngine which is handling this jobhandle - The handle which this job is to be given
public HarmoniJob(HarmoniJob parent,
short handle)
parent - The parent of the new subjob.handle - The handle which this job is to be given| Method Detail |
public boolean CheckSelectionFormula()
throws HarmoniServerError,
HarmoniAPIError
public void Close()
throws HarmoniServerError,
HarmoniAPIError
public void DeleteNthSortField(int sortFieldN)
throws HarmoniServerError,
HarmoniAPIError
sortFieldN - The index of the sort field to delete.public HarmoniEngine getEngine()
public java.lang.String GetServerLog()
throws HarmoniServerError,
HarmoniAPIError
public boolean ClearServerLog()
throws HarmoniServerError,
HarmoniAPIError
public int GetHandle()
public short GetJobStatus(HarmoniJobInfo info)
throws HarmoniAPIError,
HarmoniServerError
info - HarmoniJobInfo, information about the job statuspublic java.lang.String GetName()
public HarmoniLogOnInfo GetNthTableLogOnInfo(int tableN)
throws HarmoniServerError,
HarmoniAPIError
public HarmoniPrintOptions GetPrintOptions()
throws HarmoniAPIError,
HarmoniServerError
public HarmoniDEVMODE GetSelectedPrinter(java.lang.StringBuffer driverName,
java.lang.StringBuffer printerName,
java.lang.StringBuffer portName)
throws HarmoniServerError,
HarmoniAPIError
driverName - The name of the driver to useprinterName - The printer name to use.portName - The name of the port to use
public HarmoniPrinterInfo GetSelectedPrinterByName(java.lang.StringBuffer printName)
throws HarmoniAPIError,
HarmoniServerError
printName, - holds the Printer Name of the job
public void GetSelectionFormula(java.lang.StringBuffer formulaText)
throws HarmoniServerError,
HarmoniAPIError
formulaText - The StringBuffer to which the selection formula text
will be appended.
public void GetSQLQuery(java.lang.StringBuffer queryBuffer)
throws HarmoniServerError,
HarmoniAPIError
queryBuffer - The StringBuffer to which the SQL statement will be appended.
public short GetStatus(HarmoniJobInfo info)
throws HarmoniServerError,
HarmoniAPIError
info - A HarmoniJobInfo object which status information will be placed into.
public void OutputTo(java.lang.String outputFileName,
FormatOptions fmtOptions)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
outputFileName - formatOptions - The options the specify the format to output to
public void OutputToSaffronHtml(java.lang.String htmlFileName,
HTMLFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
htmlFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToSaffronPDF(java.lang.String pdfFileName,
PDFFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
pdfFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToSaffronRTF(java.lang.String rtfFileName,
RTFFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
rtfFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToSaffronJPEG(java.lang.String jpegFileName,
RasterFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
jpegFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToSaffronPNG(java.lang.String pngFileName,
RasterFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
pngFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToSaffronSVG(java.lang.String svgFileName,
SVGFormatOptions options)
throws InvalidParameterException,
HarmoniServerError,
HarmoniAPIError,
HarmoniClientError
svgFileName - The name of the file to export to.options - The options to use when outputing.
public void OutputToPrinter(int copies)
throws HarmoniServerError,
HarmoniAPIError
copies - The number of copies of the report to print
public void SetJobTitle(java.lang.String jobTitle)
throws HarmoniAPIError,
HarmoniServerError
public void SelectPrinter(java.lang.String driverName,
java.lang.String printerName,
java.lang.String portName,
HarmoniDEVMODE mode)
throws HarmoniServerError,
HarmoniAPIError
driverName - The name of the driverprinterName - The name of the printerportName - The name of the portmode - The mode in which the printer should be selected
The parameters must be supplied or a windows dialog will be thrown
up on the server machine.
public boolean SelectPrinterByName(java.lang.String printerName,
HarmoniPrinterInfo harmoniInfo)
throws HarmoniAPIError,
HarmoniServerError
printerName, - the printer to be attched to the report.harmoniInfo, - is the HarmoniPrinterInfo of the printer.public void SetName(java.lang.String jobName)
jobName - The name to use for this jobpublic void DeleteXmlFile(boolean xmlFileStatus)
xmlFileStatus - true or false value
public void SetNthSortField(int sortFieldN,
java.lang.String name,
int direction)
throws HarmoniServerError,
HarmoniAPIError
sortFieldN - The number of the sort field to be changed.name - The name of the sort data field.direction - The new direction of the sort field (Either
HarmoniJob.SF_ASCENDING or HarmoniJob.SF_DESCENDING).
public void SetNthTableLogOnInfo(int tableN,
HarmoniLogOnInfo logOnInfo,
boolean propagate)
throws HarmoniServerError,
HarmoniAPIError
tableN - The number of the table.logOnInfo - The HarmoniLogOnInfo object which gives the new SQL connection information
for the table.propagate - Indicates whether or not new logon information should apply to any
other tables in the report that had the same original server and database names as
the specified table.
public void SetPrintOptions(HarmoniPrintOptions options)
throws HarmoniServerError,
HarmoniAPIError
options - Class providing Print Options. Null is not accepted.
public void SetSelectionFormula(java.lang.String formulaText)
throws HarmoniServerError,
HarmoniAPIError
formulaText - The new selection formula.
public java.lang.String SetPrivateData(int table,
DORDataSet dod)
throws HarmoniClientError,
HarmoniAPIError,
HarmoniServerError,
DORException
table - int : The table number in the report or subreport.dod - com.dynalivery.dor.DORResultSet
public java.io.OutputStream SetPrivateData()
throws DORException,
HarmoniAPIError
public java.io.OutputStream SetPrivateData(int table)
throws DORException,
HarmoniAPIError
table - int : The zero index table number in the report or subreport for multi-table dor.
public java.lang.String SetPrivateData(int table,
java.lang.String xmlFileName)
throws HarmoniServerError,
HarmoniAPIError,
HarmoniClientError,
java.io.FileNotFoundException,
DORException
table - int : The table number in the report or subreport.xmlFileName - String : The full path to the xml file.
public java.lang.String SetPrivateData(int table,
java.sql.ResultSet rs)
throws HarmoniClientError,
HarmoniAPIError,
HarmoniServerError,
DORException
table - int : The table number in the report or subreport.rs - java.sql.ResultSet : the implementation of the ResultSet interface
which describes your Data Object
public java.lang.String SetPrivateData(DORDataSet dod)
throws HarmoniClientError,
HarmoniAPIError,
HarmoniServerError,
DORException
dod - DORDataSet : The data object for table zero of the report or subreport.
public java.lang.String SetPrivateData(java.lang.String xmlFileName)
throws HarmoniServerError,
HarmoniAPIError,
HarmoniClientError,
java.io.FileNotFoundException,
DORException
xmlFileName - java.lang.String Fully qualified path to the XML file.
public java.lang.String SetPrivateDataFromXMLFile(java.lang.String xmlFileName)
throws HarmoniServerError,
HarmoniAPIError,
HarmoniClientError,
java.io.FileNotFoundException,
DORException
xmlFileName - java.lang.String Fully qualified path to the XML file.
public java.lang.String SetNthTablePrivateDataFromXMLFile(int table,
java.lang.String xmlFileName)
throws HarmoniServerError,
HarmoniAPIError,
HarmoniClientError,
java.io.FileNotFoundException,
DORException
table - int The table number in the reportxmlFileName - java.lang.String Fully qualified path to the XML file.
public java.lang.String SetPrivateData(java.sql.ResultSet rs)
throws HarmoniClientError,
HarmoniAPIError,
HarmoniServerError,
DORException
rs - java.sql.ResultSet : The data object for table zero of the report or subreport.
public java.lang.String SetPrivateData(java.sql.ResultSet rs,
java.sql.ResultSetMetaData md)
throws HarmoniClientError,
HarmoniAPIError,
HarmoniServerError,
DORException
rs - java.sql.ResultSet : the implementation of the ResultSet interface
which describes your Data Objectmd - java.sql.ResultSetMetaData : the implementation of the ResultSetMetaData
interface which describes your Data Object
public void SetPrivateDataFromServerMachine(int table,
java.lang.String xmlFileName)
throws HarmoniAPIError,
HarmoniServerError
table - The table asociated with the report in the report template.xmlFileName - java.lang.String Fully qualified path to the XML file.
public void SetPrivateDataFromMainReport(int subReportTable,
HarmoniJob parent,
int mainReportTable)
throws HarmoniAPIError,
HarmoniServerError
subReportTable - The table asociated with a sub-report in the report template.parent - The parent job of this template.
public void SetSQLQuery(java.lang.String queryString)
throws HarmoniServerError,
HarmoniAPIError
queryString - The new SQL query for this job's report.
public void Start()
throws HarmoniServerError,
HarmoniAPIError,
FileReturnException
public java.io.InputStream getOutputAsStream(java.lang.String outputFileName)
throws FileReturnException,
InvalidCallSequenceException
outputFileName - the name of the output to retrieve as a stream from the server. The
client can obtain the list of the output file names by calling getOutputFileNames.
public java.lang.String[] getOutputFileNames()
throws FileReturnException,
InvalidCallSequenceException
public boolean TestNthTableConnectivity(int tableN)
throws HarmoniServerError,
HarmoniAPIError
tableN - The number of the table.
public boolean VerifyDatabase()
throws HarmoniAPIError,
HarmoniServerError
public void setRetrieveOutputToClientDisk(boolean value)
throws InvalidCallSequenceException
public void setRetrieveOutputAsStream(boolean value)
throws InvalidCallSequenceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||