|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.query.base.Query com.ibm.websphere.query.base.SelectQuery
public class SelectQuery
The SelectQuery class represents a select query in the query framework. It is derived from Query.
This class contains the order by (order by clause) part of a query, in addition to the attributes and behaviors inherited from base class Query, to describe a typical select query.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Constructor Summary | |
---|---|
SelectQuery()
Creates a new SelectQuery instance, default constructor. |
|
SelectQuery(SelectQuery selectQuery)
|
Method Summary | |
---|---|
java.lang.String |
buildLimitString(ISelectQueryCallback builder)
Builds an limit string for the select query by delegating the operation to the given query builder callback. |
void |
buildLimitString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
|
java.lang.String |
buildOrderByString(ISelectQueryCallback builder)
Builds an order by string for the select query by delegating the operation to the given query builder callback. |
void |
buildOrderByString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
|
java.lang.String |
buildString(ISelectQueryCallback builder)
Builds a query string for the select query. |
void |
buildString(ISelectQueryCallback builder,
java.lang.StringBuffer sb)
|
boolean |
equals(java.lang.Object o)
Tests for equality with the given object. |
ILimit |
getLimit()
Gets the limit |
java.lang.String |
getName()
|
IOrderBy |
getOrderBy()
Returns the order by object. |
java.lang.String[] |
getPageParams()
|
ISelect |
getSelect()
|
int |
hashCode()
Computes a hash code for the select query. |
boolean |
isCacheable()
|
void |
setCacheable(boolean b)
|
void |
setLimit(ILimit limit)
Sets the limit |
void |
setName(java.lang.String tableName)
|
void |
setOrderBy(IOrderBy newOrderBy)
Sets the order by of the select query. |
void |
setPageParams(java.lang.String[] params)
|
void |
setSelect(ISelect select)
|
Methods inherited from class com.ibm.websphere.query.base.Query |
---|
buildPredicateString, buildPredicateString, getCollectionParams, getFrom, getPagination, getPredicate, setCollectionParams, setFrom, setPagination, setPredicate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.websphere.query.base.IQuery |
---|
getCollectionParams, getFrom, getPredicate, setCollectionParams, setFrom, setPredicate |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SelectQuery()
public SelectQuery(SelectQuery selectQuery)
Method Detail |
---|
public java.lang.String buildOrderByString(ISelectQueryCallback builder) throws QueryException
QueryException
public void buildOrderByString(ISelectQueryCallback builder, java.lang.StringBuffer sb) throws QueryException
QueryException
public java.lang.String buildLimitString(ISelectQueryCallback builder) throws QueryException
QueryException
public void buildLimitString(ISelectQueryCallback builder, java.lang.StringBuffer sb) throws QueryException
QueryException
public java.lang.String buildString(ISelectQueryCallback builder) throws QueryException
buildString
in interface IStringBuilder
QueryException
public void buildString(ISelectQueryCallback builder, java.lang.StringBuffer sb) throws QueryException
buildString
in interface IStringBuilder
QueryException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public IOrderBy getOrderBy()
getOrderBy
in interface ISelectQuery
public int hashCode()
hashCode
in class java.lang.Object
public void setOrderBy(IOrderBy newOrderBy)
setOrderBy
in interface ISelectQuery
public ILimit getLimit()
getLimit
in interface ISelectQuery
public void setLimit(ILimit limit)
setLimit
in interface ISelectQuery
limit
- The limit to setpublic java.lang.String[] getPageParams()
public void setPageParams(java.lang.String[] params)
params:
- An string array of length 2,
params[0] = start, a string with the start of page
params[1] = end, a string with the end of page
Both should be convertible to Integers using Integer.parseInt()
However this method does not check this; nor does it enforce the length of the array.
Both are the caller's responsibility.public boolean isCacheable()
isCacheable
in class Query
public void setCacheable(boolean b)
setCacheable
in class Query
public ISelect getSelect()
getSelect
in interface ISelectQuery
ISelectQuery.getSelect()
public void setSelect(ISelect select)
setSelect
in interface ISelectQuery
ISelectQuery.setSelect(com.ibm.websphere.query.base.ISelect)
public java.lang.String getName()
getName
in interface ITable
public void setName(java.lang.String tableName)
setName
in interface ITable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |