|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.query.model.Query
Describes a query. Obtained from the QueryFactory
.
A query contains the following parts:
prepare(org.outerj.daisy.query.QueryContext)
.
This class also has methods to generate SQL for performing the 'where clause'.
Constructor Summary | |
Query(IdentifierList selectClause,
CondExpr whereClause,
FullTextQuery fullTextQuery,
IdentifierList orderByClause,
java.util.List sortOrders,
int limit)
|
Method Summary | |
void |
bindSql(java.sql.PreparedStatement stmt,
int bindPos)
|
FullTextQuery |
getFullTextQuery()
|
int |
getLimit()
|
Identifier[] |
getOrderByIdentifiers()
|
SortOrder[] |
getOrderBySortOrders()
|
boolean |
getSearchLastVersion()
|
Identifier[] |
getSelectIdentifiers()
|
java.lang.String |
getSql()
This method should only be called if hasSql() return true. |
java.lang.String |
getStyleHint()
|
boolean |
hasSql()
|
void |
mergeCondition(CondExpr condExpr)
Merges the where clause of this query with the given condition using the AND operator. |
void |
prepare(QueryContext context)
|
void |
setIncludeRetired(boolean includeRetired)
|
void |
setSearchLastVersion(boolean searchLastVersion)
|
void |
setStyleHint(java.lang.String styleHint)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Query(IdentifierList selectClause, CondExpr whereClause, FullTextQuery fullTextQuery, IdentifierList orderByClause, java.util.List sortOrders, int limit)
Method Detail |
public void prepare(QueryContext context) throws QueryException
QueryException
public boolean hasSql()
public java.lang.String getSql() throws QueryException
hasSql()
return true.
QueryException
public FullTextQuery getFullTextQuery()
public void bindSql(java.sql.PreparedStatement stmt, int bindPos) throws java.sql.SQLException
java.sql.SQLException
public Identifier[] getSelectIdentifiers()
public Identifier[] getOrderByIdentifiers()
public SortOrder[] getOrderBySortOrders()
public int getLimit()
public void setIncludeRetired(boolean includeRetired)
public void setSearchLastVersion(boolean searchLastVersion)
public boolean getSearchLastVersion()
public java.lang.String getStyleHint()
public void setStyleHint(java.lang.String styleHint)
public void mergeCondition(CondExpr condExpr)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |