|
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.Rows
Rows represents a Select
SQL statement rows clause. The rows clause specifies
the rows to retain in the final result Table.
Valid options are:
ALL - Retains all rows of the final result table.DISTINCT - Retains only distinct rows of the final result table.
Select,
Serialized Form| Field Summary | |
static String |
ALL
Retains all rows of the final result table and does not eliminate duplicates. |
static String |
DISTINCT
Eliminates all but one of each set of duplicate rows of the final result table. |
| Fields inherited from class com.jdc.rdb.sql.dml.DMLClause |
sqlClause |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Rows()
Constructs a new Rows clause object. |
|
Rows(String rows)
Constructs a new Rows clause object for the specified rows to
select. |
|
| Method Summary | |
String |
getValue()
Returns the Rows clause value. |
Rows |
setAll()
Sets the Rows clause to retain all rows of the final
result table and does not eliminate duplicates. |
Rows |
setDistinct()
Sets the Rows clause to eliminate all but one of each
set of duplicate rows of the final result table. |
String |
toString()
Returns a String representation of this Rows clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, getKeyword, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String ALL
public static final String DISTINCT
| Constructor Detail |
public Rows()
Rows clause object.
public Rows(String rows)
Rows clause object for the specified rows to
select. Valid options are ALL or DISTINCT.
SQLInvalidException - An invalid rows selection is specified.setAll(),
setDistinct()| Method Detail |
public String getValue()
Rows clause value.
getValue in class SQLClauseRows clause value.public Rows setAll()
Rows clause to retain all rows of the final
result table and does not eliminate duplicates.
Rows clause object.setDistinctpublic Rows setDistinct()
Rows clause to eliminate all but one of each
set of duplicate rows of the final result table. Two rows are duplicates
of one another only if each value in the first is equal to the
corresponding value of the second. For determining duplicates, two
null values are considered equal.
Rows clause object.setAllpublic String toString()
String representation of this Rows clause.
toString in interface SelectClausetoString in class SQLClauseString representation of this Rows clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||