Package net.sf.jasperreports.engine.fill
Class StoreFactoryVirtualizer
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
-
- net.sf.jasperreports.engine.fill.StoreFactoryVirtualizer
-
- All Implemented Interfaces:
JRVirtualizer
public class StoreFactoryVirtualizer extends JRAbstractLRUVirtualizer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
JRAbstractLRUVirtualizer.Cache, JRAbstractLRUVirtualizer.CacheReference
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_STORE_NOT_FOUND
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
lastObjectMap, lastObjectRef, lastObjectSet, pagedIn, pagedOut, serializer
-
-
Constructor Summary
Constructors Constructor Description StoreFactoryVirtualizer(int maxSize, VirtualizerStoreFactory storeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Called when we are done with the virtualizer and wish to cleanup any resources it has.protected void
dispose(String id)
Removes the external data associated with a virtualizable object.void
dispose(JRVirtualizationContext context)
protected void
dispose(JRVirtualizable o)
protected void
pageIn(JRVirtualizable o)
Reads a virtualizable object's data from an external storage.protected void
pageOut(JRVirtualizable o)
Writes a virtualizable object's data to an external storage.protected VirtualizerStore
store(JRVirtualizationContext context, boolean create)
protected VirtualizerStore
store(JRVirtualizable o, boolean create)
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
clearData, contextChanged, deregisterObject, disposeAll, evict, finalize, isEvictable, isPagedOut, isPagedOutAndTouch, isReadOnly, isReadOnly, lastObject, readData, registerObject, requestData, reset, setLastObject, setReadOnly, touch, virtualizeData, writeData
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_STORE_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_STORE_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StoreFactoryVirtualizer
public StoreFactoryVirtualizer(int maxSize, VirtualizerStoreFactory storeFactory)
-
-
Method Detail
-
store
protected VirtualizerStore store(JRVirtualizable o, boolean create)
-
store
protected VirtualizerStore store(JRVirtualizationContext context, boolean create)
-
pageOut
protected void pageOut(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Writes a virtualizable object's data to an external storage.- Specified by:
pageOut
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
pageIn
protected void pageIn(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Reads a virtualizable object's data from an external storage.- Specified by:
pageIn
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
dispose
protected void dispose(JRVirtualizable o)
- Overrides:
dispose
in classJRAbstractLRUVirtualizer
-
dispose
protected void dispose(String id)
Description copied from class:JRAbstractLRUVirtualizer
Removes the external data associated with a virtualizable object.- Specified by:
dispose
in classJRAbstractLRUVirtualizer
- Parameters:
id
- the ID of the virtualizable object
-
dispose
public void dispose(JRVirtualizationContext context)
-
cleanup
public void cleanup()
Description copied from interface:JRVirtualizer
Called when we are done with the virtualizer and wish to cleanup any resources it has.
-
-