Package io.ebeanservice.docstore.none
Class NoneDocStoreBeanAdapter<T>
- java.lang.Object
-
- io.ebeanservice.docstore.api.support.DocStoreBeanBaseAdapter<T>
-
- io.ebeanservice.docstore.none.NoneDocStoreBeanAdapter<T>
-
- All Implemented Interfaces:
BeanDocType<T>
,DocStoreBeanAdapter<T>
public class NoneDocStoreBeanAdapter<T> extends DocStoreBeanBaseAdapter<T>
DocStoreBeanBaseAdapter that barfs if it is used.
-
-
Constructor Summary
Constructors Constructor Description NoneDocStoreBeanAdapter(BeanDescriptor<T> desc, DeployBeanDescriptor<T> deploy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteById(Object idValue, DocStoreUpdateContext txn)
Process a delete by id of a given document.void
index(Object idValue, T entityBean, DocStoreUpdateContext txn)
Process an index event which is effectively an insert or update (or put).void
insert(Object idValue, PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn)
Process an insert persist request.boolean
isMapped()
Return true if this type is mapped for doc storage.void
update(Object idValue, PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn)
Process an update persist request.void
updateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocStoreUpdateContext txn)
Process an update of an embedded document.-
Methods inherited from class io.ebeanservice.docstore.api.support.DocStoreBeanBaseAdapter
applyPath, createDocMapping, getEmbedded, getEmbeddedManyRoot, getIndexName, getIndexType, getMode, getQueueId, hasEmbeddedInvalidation, rawProperty, registerInvalidationPath, registerPaths, updateEmbedded
-
-
-
-
Constructor Detail
-
NoneDocStoreBeanAdapter
public NoneDocStoreBeanAdapter(BeanDescriptor<T> desc, DeployBeanDescriptor<T> deploy)
-
-
Method Detail
-
isMapped
public boolean isMapped()
Description copied from interface:DocStoreBeanAdapter
Return true if this type is mapped for doc storage.- Specified by:
isMapped
in interfaceDocStoreBeanAdapter<T>
- Overrides:
isMapped
in classDocStoreBeanBaseAdapter<T>
-
deleteById
public void deleteById(Object idValue, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapter
Process a delete by id of a given document.- Specified by:
deleteById
in interfaceBeanDocType<T>
- Specified by:
deleteById
in interfaceDocStoreBeanAdapter<T>
- Specified by:
deleteById
in classDocStoreBeanBaseAdapter<T>
- Throws:
IOException
-
index
public void index(Object idValue, T entityBean, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapter
Process an index event which is effectively an insert or update (or put).- Specified by:
index
in interfaceBeanDocType<T>
- Specified by:
index
in interfaceDocStoreBeanAdapter<T>
- Specified by:
index
in classDocStoreBeanBaseAdapter<T>
- Throws:
IOException
-
insert
public void insert(Object idValue, PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapter
Process an insert persist request.- Specified by:
insert
in interfaceDocStoreBeanAdapter<T>
- Specified by:
insert
in classDocStoreBeanBaseAdapter<T>
- Throws:
IOException
-
update
public void update(Object idValue, PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapter
Process an update persist request.- Specified by:
update
in interfaceDocStoreBeanAdapter<T>
- Specified by:
update
in classDocStoreBeanBaseAdapter<T>
- Throws:
IOException
-
updateEmbedded
public void updateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapter
Process an update of an embedded document.- Specified by:
updateEmbedded
in interfaceBeanDocType<T>
- Specified by:
updateEmbedded
in interfaceDocStoreBeanAdapter<T>
- Specified by:
updateEmbedded
in classDocStoreBeanBaseAdapter<T>
- Parameters:
idValue
- the id of the bean effected by an embedded document updateembeddedProperty
- the path of the propertyembeddedRawContent
- the embedded content for this property in JSON formtxn
- the doc store transaction to use to process the update- Throws:
IOException
-
-