org.sqlorm.querybuilder
Class AndOrList

java.lang.Object
  extended by 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

Constructor Summary
AndOrList()
           
 
Method Summary
 ItfAndOrList and(org.sqlorm.querybuilder.IPositionAndOr andOr)
           
 ItfAndOrList and(String sqlString)
           
 ItfAndOrList and(String fmtString, Object... args)
           
 void internal_setIsOutermostList()
          internal method!
 int internal_size()
          internal method!
 ItfAndOrList or(org.sqlorm.querybuilder.IPositionAndOr andOr)
           
 ItfAndOrList or(String sqlString)
           
 ItfAndOrList or(String fmtString, Object... args)
           
 void toSql(StringBuilder sb, String indent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndOrList

public AndOrList()
Method Detail

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)