io.ebeanservice.docstore.none.NoneDocStoreBeanAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeanservice.docstore.none;
import io.ebeaninternal.server.core.PersistRequestBean;
import io.ebeaninternal.server.deploy.BeanDescriptor;
import io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor;
import io.ebeanservice.docstore.api.DocStoreUpdateContext;
import io.ebeanservice.docstore.api.support.DocStoreBeanBaseAdapter;
import java.io.IOException;
/**
* DocStoreBeanBaseAdapter that barfs if it is used.
*/
public class NoneDocStoreBeanAdapter extends DocStoreBeanBaseAdapter {
public NoneDocStoreBeanAdapter(BeanDescriptor desc, DeployBeanDescriptor deploy) {
super(desc, deploy);
}
@Override
public boolean isMapped() {
return false;
}
@Override
public void deleteById(Object idValue, DocStoreUpdateContext txn) throws IOException {
throw NoneDocStore.implementationNotInClassPath();
}
@Override
public void index(Object idValue, T entityBean, DocStoreUpdateContext txn) throws IOException {
throw NoneDocStore.implementationNotInClassPath();
}
@Override
public void insert(Object idValue, PersistRequestBean persistRequest, DocStoreUpdateContext txn) throws IOException {
throw NoneDocStore.implementationNotInClassPath();
}
@Override
public void update(Object idValue, PersistRequestBean persistRequest, DocStoreUpdateContext txn) throws IOException {
throw NoneDocStore.implementationNotInClassPath();
}
@Override
public void updateEmbedded(Object idValue, String embeddedProperty, String embeddedRawContent, DocStoreUpdateContext txn) throws IOException {
throw NoneDocStore.implementationNotInClassPath();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy