All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebeaninternal.server.expression.AbstractTextExpression Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebeaninternal.server.expression;

import com.avaje.ebeaninternal.api.HashQueryPlanBuilder;
import com.avaje.ebeaninternal.api.SpiExpression;
import com.avaje.ebeaninternal.api.SpiExpressionRequest;

/**
 * Base class for TextExpressions that are only executable by doc store.
 * 

* This means they can not be part of a SQL query nor do they use the built in query plan cache etc. *

*/ public abstract class AbstractTextExpression extends AbstractExpression { protected AbstractTextExpression(String propName) { super(propName); } @Override public void addSql(SpiExpressionRequest request) { // do nothing, only execute against document store } @Override public void addBindValues(SpiExpressionRequest request) { // do nothing, only execute against document store } @Override public void queryPlanHash(HashQueryPlanBuilder builder) { // do nothing, only execute against document store } @Override public int queryBindHash() { return 0; } @Override public boolean isSameByPlan(SpiExpression other) { // do not compare by plan / bind values (this way) return false; } @Override public boolean isSameByBind(SpiExpression other) { // do not compare by plan / bind values (this way) return false; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy