Class AbstractUpdateListener<R,T>
- java.lang.Object
- 
- org.projectbarbel.histo.extension.AbstractUpdateListener<R,T>
 
- 
- Type Parameters:
- R- data resource to access
- T- document type to store
 - All Implemented Interfaces:
- UpdateListenerProtocol<R,T>
 - Direct Known Subclasses:
- DefaultUpdateListener
 
 public abstract class AbstractUpdateListener<R,T> extends Object implements UpdateListenerProtocol<R,T> Mongo shadow update listener implementation to synchronizeBarbelHistobackbone updates to external data source.- Author:
- Niklas Schlimm
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringdocumentIdFieldNameprotected com.google.gson.Gsongsonprotected Class<?>managedTypeprotected BarbelModemodeprotected Class<? extends Bitemporal>persistedTypeprotected Rshadowprotected static StringVERSION_IDprotected StringversionIdFieldName
 - 
Constructor SummaryConstructors Constructor Description AbstractUpdateListener(Class<?> managedType, com.google.gson.Gson gson)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TfromPersistenceObjectJsonToStoredDocument(String json)BitemporalfromStoredDocumentToPersistenceObject(T document)abstract StringfromStroredDocumentToPersistenceObjectJson(T document)voidhandleInitialization(EventType.BarbelInitializedEvent event)voidhandleLoadOperation(EventType.OnLoadOperationEvent event)voidhandleUnLoadOperation(EventType.UnLoadOperationEvent event)voidhandleUpdate(EventType.UpdateFinishedEvent event)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.projectbarbel.histo.extension.UpdateListenerProtocoldelete, deleteJournal, getExternalDataResource, insertDocuments, queryJournal
 
- 
 
- 
- 
- 
Field Detail- 
VERSION_IDprotected static final String VERSION_ID - See Also:
- Constant Field Values
 
 - 
shadowprotected R shadow 
 - 
modeprotected final BarbelMode mode 
 - 
gsonprotected final com.google.gson.Gson gson 
 - 
versionIdFieldNameprotected String versionIdFieldName 
 - 
managedTypeprotected final Class<?> managedType 
 - 
documentIdFieldNameprotected final String documentIdFieldName 
 - 
persistedTypeprotected final Class<? extends Bitemporal> persistedType 
 
- 
 - 
Constructor Detail- 
AbstractUpdateListenerpublic AbstractUpdateListener(Class<?> managedType, com.google.gson.Gson gson) 
 
- 
 - 
Method Detail- 
handleInitializationpublic void handleInitialization(EventType.BarbelInitializedEvent event) - Specified by:
- handleInitializationin interface- UpdateListenerProtocol<R,T>
 
 - 
handleLoadOperationpublic void handleLoadOperation(EventType.OnLoadOperationEvent event) - Specified by:
- handleLoadOperationin interface- UpdateListenerProtocol<R,T>
 
 - 
handleUnLoadOperationpublic void handleUnLoadOperation(EventType.UnLoadOperationEvent event) - Specified by:
- handleUnLoadOperationin interface- UpdateListenerProtocol<R,T>
 
 - 
handleUpdatepublic void handleUpdate(EventType.UpdateFinishedEvent event) - Specified by:
- handleUpdatein interface- UpdateListenerProtocol<R,T>
 
 - 
fromStoredDocumentToPersistenceObjectpublic Bitemporal fromStoredDocumentToPersistenceObject(T document) - Specified by:
- fromStoredDocumentToPersistenceObjectin interface- UpdateListenerProtocol<R,T>
 
 - 
fromStroredDocumentToPersistenceObjectJsonpublic abstract String fromStroredDocumentToPersistenceObjectJson(T document) 
 
- 
 
-