Package 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
- Direct Known Subclasses:
SqlQuery.FromClauseList
- Enclosing class:
- SqlQuery
static class SqlQuery.ClauseList extends ArrayList<String>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowDups-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ClauseList(boolean allowDups)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String element)Adds an element to this ClauseList if either duplicates are allowed or if it has not already been added.(package private) static Stringfoo(boolean generateFormattedSql, String prefix, String s)(package private) static voidlistToBuffer(StringBuilder buf, List<SqlQuery.ClauseList> clauseListList, boolean generateFormattedSql, String prefix, String first, String sep, String last)(package private) voidtoBuffer(StringBuilder buf, boolean generateFormattedSql, String prefix, String first, String sep, String last, String empty)(package private) voidtoBuffer(StringBuilder buf, String first, String sep, String last)-
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
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:
addin interfaceCollection<String>- Specified by:
addin interfaceList<String>- Overrides:
addin classArrayList<String>- Parameters:
element- Element to add- Returns:
- whether element was added, per
Collection.add(Object)
-
toBuffer
final void toBuffer(StringBuilder buf, boolean generateFormattedSql, String prefix, String first, String sep, String last, String empty)
-
toBuffer
final void toBuffer(StringBuilder buf, String first, String sep, String last)
-
listToBuffer
static void listToBuffer(StringBuilder buf, List<SqlQuery.ClauseList> clauseListList, boolean generateFormattedSql, String prefix, String first, String sep, String last)
-
-