Package net.sf.jasperreports.engine
Class JRVirtualizationHelper
java.lang.Object
net.sf.jasperreports.engine.JRVirtualizationHelper
Virtualization helper class.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the JasperReportsContext associated to the current thread.static voidClears the virtualizer associated to the current thread.static JasperReportsContextReturns the JasperReportsContext associated to the current thread.static JRVirtualizerReturns the virtualizer associated to the current thread.static voidsetThreadJasperReportsContext(JasperReportsContext jasperReportsContext) Sets a JasperReportsContext to be used for the current thread.static voidsetThreadVirtualizer(JRVirtualizer virtualizer) Sets a virtualizer to be used for the current thread.
-
Method Details
-
setThreadVirtualizer
Sets a virtualizer to be used for the current thread.The current thread's virtualizer is used when a report obtained by virtualization is deserialized.
- Parameters:
virtualizer-
-
clearThreadVirtualizer
public static void clearThreadVirtualizer()Clears the virtualizer associated to the current thread. -
getThreadVirtualizer
Returns the virtualizer associated to the current thread.This method is used by
JRVirtualPrintPageon deserialization.- Returns:
- the virtualizer associated to the current thread
-
setThreadJasperReportsContext
Sets a JasperReportsContext to be used for the current thread.The current thread's context is used when a report obtained by virtualization is deserialized.
- Parameters:
jasperReportsContext-
-
clearThreadJasperReportsContext
public static void clearThreadJasperReportsContext()Clears the JasperReportsContext associated to the current thread. -
getThreadJasperReportsContext
Returns the JasperReportsContext associated to the current thread.This method is used by
JRVirtualPrintPageon deserialization.- Returns:
- the JasperReportsContext associated to the current thread
-