Klasse EngineBundle
java.lang.Object
com.inet.report.EngineBundle
- Alle implementierten Schnittstellen:
ReportGenerator
A bundle of multiple engines you want to render as one document. In the report URL the "reports" parameter can be used to set multiple reports you want to render as one, separated by semi-colon.
- Seit:
- 15.0
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEngineBundle(String format) Create a new bundle of reports for the specified output format. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungaddReportFile(String reportUrl) Add a new report template to this bundle and creates an engine.voidexecute()SeeEngine.execute()for details.Get the first Engine from the bundle list.Get all Engines of this bundle.intSeeEngine.getPageCount()for details.byte[]getPageData(int page) SeeEngine.getPageData(int)for details.getPromptField(String name) SeeEngine.getPromptField(String)for details.@Nonnull EngineStatisticsSeeEngine.getStatistics()for details.voidsetClientLocale(@Nonnull Locale locale) SeeEngine.setClientLocale(Locale)for details.voidsetDocumentOutput(DocumentOutput documentOutput) Set the output location for the rendered data.voidNOTE: UnlikeEngine.setPrompt(String, int), the number i does not refer to prompt i in any engine, but will count from the first engine onwards.voidSeeEngine.setPrompt(String, String)for details.voidsetUserProperties(Properties props) SeeEngine.setUserProperties(Properties)for details.voidSeeEngine.stop(String)for details.voidstopAfterPage(int maxPageNo) SeeEngine.stopAfterPage(int)for details.
-
Konstruktordetails
-
EngineBundle
Create a new bundle of reports for the specified output format.- Parameter:
format- One of the constant form Engine.- Löst aus:
ReportException- if the format is not supported because it is tabular- Seit:
- 15.0
-
-
Methodendetails
-
addReportFile
Add a new report template to this bundle and creates an engine.- Parameter:
reportUrl- the report URL or file path to the *.rpt template.- Gibt zurück:
- the created engine
- Löst aus:
ReportException- if the file can not be loaded or the format is currently not supported- Seit:
- 15.0
-
setDocumentOutput
Set the output location for the rendered data. By default the memory (heap) is used. It is also possible to store the data into the report cache or stream it directly to an OutputStream. This must be set before call of execute().- Angegeben von:
setDocumentOutputin SchnittstelleReportGenerator- Parameter:
documentOutput- The location for the data. This can be DocumentOutputStream or CachedOutput.
-
execute
SeeEngine.execute()for details.- Angegeben von:
executein SchnittstelleReportGenerator- Löst aus:
ReportException- if Engine is not initialized or finished.- Siehe auch:
-
getEngine0
Get the first Engine from the bundle list.- Gibt zurück:
- the Engine with index 0
- Löst aus:
ReportException- if no rpt file was set.- Seit:
- 17.0
-
getEngines
-
getPageCount
SeeEngine.getPageCount()for details.- Angegeben von:
getPageCountin SchnittstelleReportGenerator- Gibt zurück:
- number of pages or chunks
- Löst aus:
ReportException- If rendering the report encounters a problem
-
getPageData
SeeEngine.getPageData(int)for details.- Angegeben von:
getPageDatain SchnittstelleReportGenerator- Parameter:
page- The number of the page. The first page is 1, the second is 2, ... . If the page number is bigger than the page count then null will be returned.- Gibt zurück:
- the binary data for the Java Viewer or the bytes of the exported file (page).
- Löst aus:
ReportException- If rendering the page encounters a problem
-
stop
SeeEngine.stop(String)for details.- Angegeben von:
stopin SchnittstelleReportGenerator- Parameter:
message- a message for the debug log.
-
getStatistics
SeeEngine.getStatistics()for details.- Angegeben von:
getStatisticsin SchnittstelleReportGenerator- Gibt zurück:
- the statistic
-
setUserProperties
SeeEngine.setUserProperties(Properties)for details.- Angegeben von:
setUserPropertiesin SchnittstelleReportGenerator- Parameter:
props- The data to be set in a Properties object.- Löst aus:
ReportException- if Engine is not initialized or finished.
-
setClientLocale
SeeEngine.setClientLocale(Locale)for details.- Angegeben von:
setClientLocalein SchnittstelleReportGenerator- Parameter:
locale- The locale to be used by the client- Löst aus:
ReportException- if Engine is not initialized or finished.
-
stopAfterPage
public void stopAfterPage(int maxPageNo) SeeEngine.stopAfterPage(int)for details.- Angegeben von:
stopAfterPagein SchnittstelleReportGenerator- Parameter:
maxPageNo- The last page that should be rendered. 0 means "unlimited".
-
setPrompt
SeeEngine.setPrompt(String, String)for details.- Angegeben von:
setPromptin SchnittstelleReportGenerator- Parameter:
name- the name of the parameter fieldprompt- value for parameter field as String- Löst aus:
ReportException- if Engine is not initialized or finished.
-
getPromptField
SeeEngine.getPromptField(String)for details.- Angegeben von:
getPromptFieldin SchnittstelleReportGenerator- Parameter:
name- name of the prompt to fetch- Gibt zurück:
- PromptField by the given name in this Report, or null if none exists
- Löst aus:
ReportException- if Engine is not initialized or finished.
-
setPrompt
NOTE: UnlikeEngine.setPrompt(String, int), the number i does not refer to prompt i in any engine, but will count from the first engine onwards. So if there are three engines with five prompts each, i=12 will set the third prompt in the third engine. SeeEngine.setPrompt(String, int)for details.- Angegeben von:
setPromptin SchnittstelleReportGenerator- Parameter:
prompt- value for parameter field ii- index in the parameter list- Löst aus:
ReportException- if Engine is not initialized or finished.
-