Package de.jaggl.sqlbuilder.conditions
Class Condition
- java.lang.Object
-
- de.jaggl.sqlbuilder.conditions.Condition
-
- Direct Known Subclasses:
CombinedCondition
,EmptyCondition
,GenericCondition
,IsIn
,IsLike
,IsNotIn
,IsNotLike
,PlainCondition
public abstract class Condition extends Object
- Since:
- 2.0.0
- Author:
- Martin Schumacher
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addPlaceholderSqlTypes(List<Integer> sqlTypes)
Condition
and(Condition other)
Condition
andNot(Condition other)
Condition
append(Condition other, ConcatenationType concatenationType, ConditionType conditionType)
String
build(BuildingContext context, boolean concatenate, Indentation indentation)
protected abstract String
doBuild(BuildingContext context, Indentation indentation)
static Condition
emptyCondition()
List<Integer>
getPlaceholderSqlTypes()
Condition
or(Condition other)
Condition
orNot(Condition other)
static Condition
plain(String plainCondition)
protected static List<Integer>
resolvePlaceholderSqlTypes(Object... values)
-
-
-
Method Detail
-
doBuild
protected abstract String doBuild(BuildingContext context, Indentation indentation)
-
build
public String build(BuildingContext context, boolean concatenate, Indentation indentation)
-
append
public Condition append(Condition other, ConcatenationType concatenationType, ConditionType conditionType)
-
emptyCondition
public static Condition emptyCondition()
-
resolvePlaceholderSqlTypes
protected static List<Integer> resolvePlaceholderSqlTypes(Object... values)
-
-