|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.cache.ReportCacheKey
public final class ReportCacheKey
This class represents a unique key for a report output. The object is not mutable.
| Constructor Summary | |
|---|---|
ReportCacheKey(java.lang.String report,
java.lang.String parameter,
java.lang.String format,
long vgen)
Creates a new ReportCacheKey. |
|
ReportCacheKey(java.lang.String report,
java.lang.String parameter,
java.lang.String format,
long vgen,
boolean scheduleInProcessReport)
Creates a new ReportCacheKey. |
|
| Method Summary | |
|---|---|
ReportCacheKey |
create(boolean scheduleInProcess)
Returns an instance of ReportCacheKey equals to this instance except that the flag if the report is a schedule report currently rendering is set to the supplied value. |
boolean |
equals(java.lang.Object o)
Compares the values of this ReportCacheKey with those of the other ReportCacheKey. |
java.lang.String |
getFormat()
Returns the export format of the report. |
java.lang.String |
getParameter()
Returns the report relevant parameters. |
java.lang.String |
getReport()
Returns the report name (file path) of the report. |
long |
getVGen()
Returns the value of the property "vgen". |
int |
hashCode()
Summary of report-hashcode and parameter-hashcode. |
boolean |
isRequestScheduleInProcessReport()
Shows whether this key can access schedule report that is in execution. |
java.lang.String |
toString()
Returns a String representation of this ReportCacheKey. |
| Constructor Detail |
|---|
public ReportCacheKey(java.lang.String report,
java.lang.String parameter,
java.lang.String format,
long vgen)
throws ReportException
report - e.g "file:C:/i-net Clear Reports/reports/test.rpt"parameter - The parameters for the report as a string, key-value pairs paired with the
equal sign and separated by ampersands, e.g. "vgen=141513&init=pdf&..."format - the export format for the report. e.g Engine.EXPORT_PDFvgen - default value is 0.
ReportException - when the report is empty
public ReportCacheKey(java.lang.String report,
java.lang.String parameter,
java.lang.String format,
long vgen,
boolean scheduleInProcessReport)
throws ReportException
report - e.g "file:C:/i-net Clear Reports/reports/test.rpt"parameter - The parameters for the report as a string, key-value pairs paired with the
equal sign and separated by ampersands, e.g. "vgen=141513&init=pdf&..."format - the export format for the report. e.g Engine.EXPORT_PDFvgen - default value is 0.scheduleInProcessReport - if from scheduler or not.
ReportException - when the report is empty| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - a ReportCacheKey
false if Object is not instanceof ReportCacheKey
or the values are different; true if all values are equalspublic java.lang.String getReport()
public java.lang.String getParameter()
public long getVGen()
public java.lang.String getFormat()
public boolean isRequestScheduleInProcessReport()
public java.lang.String toString()
toString in class java.lang.Objectpublic ReportCacheKey create(boolean scheduleInProcess)
scheduleInProcess - True if the report is a schedule report
which is currently rendering. False if the report is already
finished.
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||