public class ECGiftRegistryQuery extends ECQuery
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The class name field.
|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
static java.lang.String |
JOIN_GRADDR
Join condition for the address table and registrant table.
|
static java.lang.String |
JOIN_GRETDESC
Join condition for the GRETDESC table and registry table.
|
static java.lang.String |
JOIN_GREVNTTYPE
Join condition for the GREVNTTYPE table and registry table.
|
static java.lang.String |
JOIN_GRRGSTRNT
Join condition for the registry table and registrant table.
|
DEFAULT_START, UNDEFINED_MAX_RESULTS
Constructor and Description |
---|
ECGiftRegistryQuery()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
executeUnionQuery(ECGiftRegistryQuery query)
This method executes a union query by merging
this as the
first query with the query passed as the parameter. |
java.lang.Integer |
getUnionQueryResultSize()
This method returns the result set size of the union query.
|
void |
setAllFromTables(java.util.Set setFromTables)
Set the FROM Tables for the search query
If not specified, by default, the FROM tables will be taken from the SELECT, WHERE and JOIN clauses.
|
void |
setDefaultSelectTableFields(TableField[] aSelectTableFields)
Set the Default TableField object that will be used for the SELECT clause.
|
void |
setJoinInformation(java.util.Vector asvecJoinInformation)
Sets the join information used by ECQuery
This is required if GiftRegistrySearchDataBeanBase is extended to sort or search by new table fields.
|
executeQuery, getAdditionalSelectTableFields, getMaxResults, getOrderBy, getResultSize, getRetrieveCountOnly, getStart, getUncommittedRead, getWhereClause, isValid, setAdditionalSelectTableFields, setMaxResults, setOrderBy, setRetrieveCountOnly, setStart, setUncommittedRead, setWhereClause, toString
public static final java.lang.String COPYRIGHT
public static java.lang.String JOIN_GRRGSTRNT
public static java.lang.String JOIN_GRADDR
public static java.lang.String JOIN_GREVNTTYPE
public static java.lang.String JOIN_GRETDESC
public static final java.lang.String CLASSNAME
public void setDefaultSelectTableFields(TableField[] aSelectTableFields)
aSelectTableFields
- of TableField objectspublic void setJoinInformation(java.util.Vector asvecJoinInformation)
asvecJoinInformation
- of JoinInformation objects.public void setAllFromTables(java.util.Set setFromTables)
setAllFromTables
in class ECQuery
aSetFromTables
- The set of FROM TablesECQuery#setAllFromTables(Set)}
public java.util.Vector executeUnionQuery(ECGiftRegistryQuery query) throws java.sql.SQLException
this
as the
first query with the query passed as the parameter. Both the queries are
validated individually before merging. However, the merged query is not
validated. The paging parameters are extracted from this query while
the order by parameter is taken from the query passed as parameter.query
- java.sql.SQLException
- When an exception occurs while running the query.public java.lang.Integer getUnionQueryResultSize()