public static class IDatabaseAccess.Where
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<? extends java.lang.Object> |
conditions |
java.lang.String |
delimiter |
java.lang.String |
where |
Constructor and Description |
---|
Where(java.lang.String where)
A simple where condition.
|
Where(java.lang.String whereWithPlaceholder,
java.util.Collection<? extends java.lang.Object> conditions,
java.lang.String delimiter)
A where condition which may contain a large number of where-segments.
|
Modifier and Type | Method and Description |
---|---|
int |
getConditionCount() |
java.lang.String |
getConditionString() |
java.lang.String |
toString() |
IDatabaseAccess.Where |
withNewWhere(java.lang.String where)
Convenience function to duplicate a where condition with equal conditions and delimiter but different where
clause; if conditions have already been joined, the result is re-used.
|
public final java.lang.String where
public final java.util.List<? extends java.lang.Object> conditions
public final java.lang.String delimiter
public Where(java.lang.String where)
where
- The condition; may be null
.public Where(java.lang.String whereWithPlaceholder, java.util.Collection<? extends java.lang.Object> conditions, java.lang.String delimiter)
whereWithPlaceholder
- The where condition which must have a "%s" placeholder, if conditions are passed.conditions
- The list of conditions to be inserted at the placeholder; may be null
.delimiter
- The delimiter which is used to concatenate the segments; may be null
.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getConditionString()
public int getConditionCount()
conditions
, if there are any; 0 otherwise.public IDatabaseAccess.Where withNewWhere(java.lang.String where)
Copyright (c) 2015 itemis AG, and others. All rights reserved.