mondrian.rolap.sql
Class SqlQuery.ClauseList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<String>
              extended by 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
protected  boolean allowDups
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SqlQuery.ClauseList(boolean allowDups)
           
 
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) static String foo(boolean generateFormattedSql, String prefix, String s)
           
(package private) static void listToBuffer(StringBuilder buf, List<SqlQuery.ClauseList> clauseListList, boolean generateFormattedSql, String prefix, String first, String sep, String last)
           
(package private)  void toBuffer(StringBuilder buf, boolean generateFormattedSql, String prefix, String first, String sep, String last, String empty)
           
(package private)  void toBuffer(StringBuilder buf, String first, String sep, String last)
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
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.List
containsAll, equals, hashCode
 

Field Detail

allowDups

protected final boolean allowDups
Constructor Detail

SqlQuery.ClauseList

SqlQuery.ClauseList(boolean allowDups)
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:
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

final void toBuffer(StringBuilder buf,
                    boolean generateFormattedSql,
                    String prefix,
                    String first,
                    String sep,
                    String last,
                    String empty)

foo

static String foo(boolean generateFormattedSql,
                  String prefix,
                  String s)

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)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads