mondrian.rolap.sql
Class SqlQuery.ClauseList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<String>
mondrian.rolap.sql.SqlQuery.ClauseList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess
- Enclosing class:
- SqlQuery
static class SqlQuery.ClauseList
- extends ArrayList<String>
-
-
Method Summary |
boolean |
add(String element)
Adds an element to this ClauseList if either duplicates are allowed
or if it has not already been added. |
(package private) void |
print(PrintWriter pw,
boolean generateFormattedSql,
String prefix,
String first,
String sep)
|
(package private) void |
print(PrintWriter pw,
boolean generateFormattedSql,
String prefix,
String first,
String sep,
String suffix,
String last)
|
(package private) void |
toBuffer(StringBuilder buf,
String first,
String sep)
|
Methods inherited from class java.util.ArrayList |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
SqlQuery.ClauseList
SqlQuery.ClauseList(boolean allowDups)
add
public boolean add(String element)
- Adds an element to this ClauseList if either duplicates are allowed
or if it has not already been added.
- Specified by:
add
in interface Collection<String>
- Specified by:
add
in interface List<String>
- Overrides:
add
in class ArrayList<String>
- Parameters:
element
- Element to add
- Returns:
- whether element was added, per
Collection.add(Object)
toBuffer
void toBuffer(StringBuilder buf,
String first,
String sep)
print
void print(PrintWriter pw,
boolean generateFormattedSql,
String prefix,
String first,
String sep)
print
void print(PrintWriter pw,
boolean generateFormattedSql,
String prefix,
String first,
String sep,
String suffix,
String last)