Class DefaultLazyLoadingListener
- java.lang.Object
-
- org.projectbarbel.histo.extension.AbstractLazyLoadingListener<com.googlecode.cqengine.IndexedCollection<BitemporalVersion>,BitemporalVersion>
-
- org.projectbarbel.histo.extension.DefaultLazyLoadingListener
-
- All Implemented Interfaces:
LazyLoadingListenerProtocol<com.googlecode.cqengine.IndexedCollection<BitemporalVersion>,BitemporalVersion>
public class DefaultLazyLoadingListener extends AbstractLazyLoadingListener<com.googlecode.cqengine.IndexedCollection<BitemporalVersion>,BitemporalVersion>
Default listener implementation. Can be used to shadow backbone into a persistentIndexedCollection
.- Author:
- Niklas Schlimm
-
-
Field Summary
-
Fields inherited from class org.projectbarbel.histo.extension.AbstractLazyLoadingListener
documentIdFieldName, fullfetchAllowed, gson, managedType, mode, persistedType, shadow, singletonContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultLazyLoadingListener(Class<?> managedType, com.google.gson.Gson gson, boolean singletonContext, com.googlecode.cqengine.IndexedCollection<BitemporalVersion> shadow)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fromStoredDocumentToPersistenceObjectJson(BitemporalVersion document)
com.googlecode.cqengine.IndexedCollection<BitemporalVersion>
getExternalDataResource()
static com.googlecode.cqengine.IndexedCollection<BitemporalVersion>
getShadow()
Iterable<BitemporalVersion>
queryAll()
Iterable<BitemporalVersion>
queryJournal(Object id)
static void
setShadow(com.googlecode.cqengine.IndexedCollection<BitemporalVersion> shadow)
-
Methods inherited from class org.projectbarbel.histo.extension.AbstractLazyLoadingListener
fromStoreDocumentPersistenceObject, handleInitialization, handleInitializeJournal, handleRetrieveData
-
-
-
-
Constructor Detail
-
DefaultLazyLoadingListener
protected DefaultLazyLoadingListener(Class<?> managedType, com.google.gson.Gson gson, boolean singletonContext, com.googlecode.cqengine.IndexedCollection<BitemporalVersion> shadow)
-
-
Method Detail
-
setShadow
public static void setShadow(com.googlecode.cqengine.IndexedCollection<BitemporalVersion> shadow)
-
getShadow
public static com.googlecode.cqengine.IndexedCollection<BitemporalVersion> getShadow()
-
queryAll
public Iterable<BitemporalVersion> queryAll()
-
queryJournal
public Iterable<BitemporalVersion> queryJournal(Object id)
-
getExternalDataResource
public com.googlecode.cqengine.IndexedCollection<BitemporalVersion> getExternalDataResource()
-
fromStoredDocumentToPersistenceObjectJson
public String fromStoredDocumentToPersistenceObjectJson(BitemporalVersion document)
- Specified by:
fromStoredDocumentToPersistenceObjectJson
in classAbstractLazyLoadingListener<com.googlecode.cqengine.IndexedCollection<BitemporalVersion>,BitemporalVersion>
-
-