org.sqlorm.querybuilder
Class AndOrList
java.lang.Object
org.sqlorm.querybuilder.AndOrList
- All Implemented Interfaces:
- ItfAndOrList
public class AndOrList
- extends Object
- implements ItfAndOrList
Internal helper class for query generation. Implements IPositionAndOr as you can say
.and( new AndOrList().and(boo).and(bar)
- Author:
- kasper graversen
AndOrList
public AndOrList()
and
public ItfAndOrList and(org.sqlorm.querybuilder.IPositionAndOr andOr)
- Specified by:
and
in interface ItfAndOrList
and
public ItfAndOrList and(String sqlString)
- Specified by:
and
in interface ItfAndOrList
and
public ItfAndOrList and(String fmtString,
Object... args)
- Specified by:
and
in interface ItfAndOrList
or
public ItfAndOrList or(org.sqlorm.querybuilder.IPositionAndOr andOr)
- Specified by:
or
in interface ItfAndOrList
or
public ItfAndOrList or(String sqlString)
- Specified by:
or
in interface ItfAndOrList
or
public ItfAndOrList or(String fmtString,
Object... args)
- Specified by:
or
in interface ItfAndOrList
internal_setIsOutermostList
public void internal_setIsOutermostList()
- internal method! Use this method when creating InnerJoin expressions or other elements that contains lists, where
that list may be nested in other lists. But where the outermost list must be formatted differently than the nested
lists.
- Specified by:
internal_setIsOutermostList
in interface ItfAndOrList
internal_size
public int internal_size()
- internal method!
- Specified by:
internal_size
in interface ItfAndOrList
toSql
public void toSql(StringBuilder sb,
String indent)