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(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc, io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor<T> deploy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteById(Object idValue, DocUpdateContext txn)Process a delete by id of a given document.voidindex(Object idValue, T entityBean, DocUpdateContext txn)Process an index event which is effectively an insert or update (or put).voidinsert(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn)Process an insert persist request.booleanisMapped()Return true if this type is mapped for doc storage.voidupdate(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn)Process an update persist request.voidupdateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocUpdateContext 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(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc, io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor<T> deploy)
-
-
Method Detail
-
isMapped
public boolean isMapped()
Description copied from interface:DocStoreBeanAdapterReturn true if this type is mapped for doc storage.- Specified by:
isMappedin interfaceDocStoreBeanAdapter<T>- Overrides:
isMappedin classDocStoreBeanBaseAdapter<T>
-
deleteById
public void deleteById(Object idValue, DocUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapterProcess a delete by id of a given document.- Specified by:
deleteByIdin interfaceBeanDocType<T>- Specified by:
deleteByIdin interfaceDocStoreBeanAdapter<T>- Specified by:
deleteByIdin classDocStoreBeanBaseAdapter<T>- Throws:
IOException
-
index
public void index(Object idValue, T entityBean, DocUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapterProcess an index event which is effectively an insert or update (or put).- Specified by:
indexin interfaceBeanDocType<T>- Specified by:
indexin interfaceDocStoreBeanAdapter<T>- Specified by:
indexin classDocStoreBeanBaseAdapter<T>- Throws:
IOException
-
insert
public void insert(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapterProcess an insert persist request.- Specified by:
insertin interfaceDocStoreBeanAdapter<T>- Specified by:
insertin classDocStoreBeanBaseAdapter<T>- Throws:
IOException
-
update
public void update(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapterProcess an update persist request.- Specified by:
updatein interfaceDocStoreBeanAdapter<T>- Specified by:
updatein classDocStoreBeanBaseAdapter<T>- Throws:
IOException
-
updateEmbedded
public void updateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocUpdateContext txn) throws IOException
Description copied from interface:DocStoreBeanAdapterProcess an update of an embedded document.- Specified by:
updateEmbeddedin interfaceBeanDocType<T>- Specified by:
updateEmbeddedin interfaceDocStoreBeanAdapter<T>- Specified by:
updateEmbeddedin 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
-
-