Package org.mybatis.dynamic.sql
Class AbstractSubselectCondition<T>
java.lang.Object
org.mybatis.dynamic.sql.AbstractSubselectCondition<T>
- All Implemented Interfaces:
RenderableCondition<T>
- Direct Known Subclasses:
IsEqualToWithSubselect,IsGreaterThanOrEqualToWithSubselect,IsGreaterThanWithSubselect,IsInWithSubselect,IsLessThanOrEqualToWithSubselect,IsLessThanWithSubselect,IsNotEqualToWithSubselect,IsNotInWithSubselect
public abstract class AbstractSubselectCondition<T>
extends Object
implements RenderableCondition<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSubselectCondition(Buildable<SelectModel> selectModelBuilder) -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringoperator()renderCondition(RenderingContext renderingContext, BindableColumn<T> leftColumn) Render a condition - typically a condition in a WHERE clause.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mybatis.dynamic.sql.RenderableCondition
isEmpty, renderingSkipped, renderLeftColumn, shouldRender
-
Constructor Details
-
AbstractSubselectCondition
-
-
Method Details
-
operator
-
renderCondition
public FragmentAndParameters renderCondition(RenderingContext renderingContext, BindableColumn<T> leftColumn) Description copied from interface:RenderableConditionRender a condition - typically a condition in a WHERE clause.A rendered condition includes an SQL fragment, and any associated parameters. For example, the
isEqualcondition should be rendered as "= ?" where "?" is a properly formatted parameter marker (the parameter marker can be computed from theRenderingContext). Note that a rendered condition should NOT include the left side of the phrase - that is rendered by theRenderableCondition.renderLeftColumn(RenderingContext, BindableColumn)method.- Specified by:
renderConditionin interfaceRenderableCondition<T>- Parameters:
renderingContext- the current rendering contextleftColumn- the column related to this condition in a where clause- Returns:
- the rendered condition. Should NOT include the column.
-