|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQLClause
|
+--com.jdc.rdb.sql.dml.DMLClause
|
+--com.jdc.rdb.sql.dml.select.GroupBy
GroupBy represents a Select
SQL statement GROUP BY clause. The GROUP BY
clause specifies specifies an intermediate result Table that
consists of a grouping of the rows of into the result table. The result table
is the result of the previous clause of the subselect.
GROUP BY clause contains a grouping expression.
A grouping expression is an expression used in defining the grouping of the
result table. Each column name included in grouping-expression must
unambiguously identify a column of the result table.
If the grouping-expression contains varying-length strings with trailing
blanks, the values in the group can differ in the number of trailing blanks and
may not all have the same length. In that case, a reference to the
grouping-expression still specifies only one value for each group, but
the value for a group is chosen arbitrarily from the available set of values.
Thus, the actual length of the result value is unpredictable.
Select,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.rdb.sql.dml.DMLClause |
sqlClause |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
GroupBy()
Constructs a new GroupBy clause object. |
|
GroupBy(String value)
Constructs a new GroupBy clause object for the specified
column name or names. |
|
| Method Summary | |
GroupBy |
addName(String column)
Adds a Column name to the list of Column names. |
GroupBy |
addName(String table,
String column)
Adds a qualified Table Column name to
the list of Column names. |
boolean |
contains(String table,
String column)
Returns true if the GroupBy list contains the
specified Table Column name. |
String |
getKeyword()
Returns the GroupBy clause keyword. |
String |
getValue()
Returns the GroupBy clause value. |
String |
toString()
Returns a String representation of this GroupBy clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GroupBy()
GroupBy clause object.
public GroupBy(String value)
GroupBy clause object for the specified
column name or names.
SQLInvalidException - No GROUP BY column name or names is specified.| Method Detail |
public GroupBy addName(String column)
Column name to the list of Column names.
The list of Column names is used to create the GroupBy
clause value. Invoke this method as many times as is required to create a
list of Column names.
GroupBy clause object.
SQLInvalidException - No Column name is specified or
the column name is already specified.addName(String, String)
public GroupBy addName(String table,
String column)
Table Column name to
the list of Column names. The list of Table
Column names is used to create the GroupBy clause
value. Invoke this method as many times as is required to create a
list of Table Column names.
GroupBy clause object.
SQLInvalidException - No Table Column name
is specified or the column name is already specified.addName(String)
public boolean contains(String table,
String column)
true if the GroupBy list contains the
specified Table Column name.
True if the list contains the Column name. False if the list does not contain the Column name.public String getKeyword()
GroupBy clause keyword.
getKeyword in class SQLClauseGroupBy clause keyword.public String getValue()
GroupBy clause value.
getValue in class SQLClauseGroupBy clause value.public String toString()
String representation of this GroupBy clause.
toString in interface SelectClausetoString in class SQLClauseString representation of this GroupBy clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||