public class JasperReport extends AbstractImplementation implements ExecutableIF
Argument Keyword | Datatype | Default | Description |
---|---|---|---|
ReportFile | String | none | The name of the compiles Jasper Report. The class attempts to resolve a URL from the String contents. If that fails, it assumes that the String contents represent a location in the file system. If that fails too, it assumes that the String represents a CLASSPATH location. |
ReportRef | String | none | The name of the reference that holds the compiled Jasper Report. It is possible that other classes create the compiled report file, They can use this property to assign the reference store where this class can find it. |
DestFile | String | none | The name of the destination .jrprint file. |
MapRef | String | none | The name of the reference via the map can get. The reference object must implement the interface java.util.Map. |
SourceRef | String | none | The name of the reference via the datasource can get. The reference object must implement the interface net.sf.jasperreports.engine.JRDataSource. |
OutputStreamRef | String | none | The name of the reference via the outputstream can get. The reference object must implement the interface java.io.OutputStream. This property is useful when an application want to load the result directly to a WEB client. If this the property is available the DestFile property will be omitted. |
InputStreamRef | String | none | The name of the reference via the inputstream can get. The reference object must implement the interface java.io.InputStream. This property must be available when an application want to load the result directly to a WEB client. It is the input stream of the compiled JasperReport file (.jasper). If this the property is available the ReportFile property will be omitted. |
Type | String | JRPrint | The name of the type of output. Possible values are JRPrint, PDF or HTML. |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
destFile |
protected java.io.InputStream |
inputStream |
protected java.lang.String |
mapRef |
protected java.io.OutputStream |
outputStream |
protected java.lang.String |
reportFile |
protected java.lang.String |
sourceRef |
protected net.sf.jasperreports.engine.JasperReport |
theJasperReport |
protected java.lang.String |
type |
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
JasperReport() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the implementation
|
void |
init()
Initialize the implementation
|
void |
terminate()
Terminate the implementation
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected java.lang.String reportFile
protected java.lang.String destFile
protected java.lang.String mapRef
protected java.lang.String sourceRef
protected java.lang.String type
protected java.io.OutputStream outputStream
protected java.io.InputStream inputStream
protected net.sf.jasperreports.engine.JasperReport theJasperReport
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if execution fails.public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.