public abstract class AbstractSingleValueCondition<T> extends Object implements VisitableCondition<T>
Modifier and Type | Field and Description |
---|---|
protected Supplier<T> |
valueSupplier |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSingleValueCondition(Supplier<T> valueSupplier) |
protected |
AbstractSingleValueCondition(Supplier<T> valueSupplier,
Predicate<T> predicate) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ConditionVisitor<T,R> visitor) |
abstract String |
renderCondition(String columnName,
String placeholder) |
boolean |
shouldRender()
Subclasses can override this to inform the renderer if the condition should not be included
in the rendered SQL.
|
T |
value() |
public T value()
public boolean shouldRender()
VisitableCondition
shouldRender
in interface VisitableCondition<T>
public <R> R accept(ConditionVisitor<T,R> visitor)
accept
in interface VisitableCondition<T>
Copyright © 2016–2019 MyBatis.org. All rights reserved.