public class NoneDocStoreBeanAdapter<T> extends DocStoreBeanBaseAdapter<T>
Constructor and Description |
---|
NoneDocStoreBeanAdapter(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc,
io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor<T> deploy) |
Modifier and Type | Method and 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,
io.ebeaninternal.server.core.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,
io.ebeaninternal.server.core.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.
|
applyPath, createDocMapping, getEmbedded, getEmbeddedManyRoot, getIndexName, getIndexType, getMode, getQueueId, hasEmbeddedInvalidation, rawProperty, registerInvalidationPath, registerPaths, updateEmbedded
public NoneDocStoreBeanAdapter(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc, io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor<T> deploy)
public boolean isMapped()
DocStoreBeanAdapter
isMapped
in interface DocStoreBeanAdapter<T>
isMapped
in class DocStoreBeanBaseAdapter<T>
public void deleteById(Object idValue, DocStoreUpdateContext txn) throws IOException
DocStoreBeanAdapter
deleteById
in interface BeanDocType<T>
deleteById
in interface DocStoreBeanAdapter<T>
deleteById
in class DocStoreBeanBaseAdapter<T>
IOException
public void index(Object idValue, T entityBean, DocStoreUpdateContext txn) throws IOException
DocStoreBeanAdapter
index
in interface BeanDocType<T>
index
in interface DocStoreBeanAdapter<T>
index
in class DocStoreBeanBaseAdapter<T>
IOException
public void insert(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
DocStoreBeanAdapter
insert
in interface DocStoreBeanAdapter<T>
insert
in class DocStoreBeanBaseAdapter<T>
IOException
public void update(Object idValue, io.ebeaninternal.server.core.PersistRequestBean<T> persistRequest, DocStoreUpdateContext txn) throws IOException
DocStoreBeanAdapter
update
in interface DocStoreBeanAdapter<T>
update
in class DocStoreBeanBaseAdapter<T>
IOException
public void updateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocStoreUpdateContext txn) throws IOException
DocStoreBeanAdapter
updateEmbedded
in interface BeanDocType<T>
updateEmbedded
in interface DocStoreBeanAdapter<T>
updateEmbedded
in class DocStoreBeanBaseAdapter<T>
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 updateIOException
Copyright © 2019. All rights reserved.