|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.daisy.query.model.Query
public class 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(ValueExprList selectClause,
PredicateExpr whereClause,
FullTextQuery fullTextQuery,
ValueExprList orderByClause,
java.util.List sortOrders,
int limit)
|
|
| Method Summary | |
|---|---|
void |
bindSql(java.sql.PreparedStatement stmt,
int bindPos,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
|
boolean |
getAnnotateLinkFields()
|
FullTextQuery |
getFullTextQuery()
|
int |
getLimit()
|
org.outerj.daisy.repository.query.SortOrder[] |
getOrderBySortOrders()
|
ValueExpr[] |
getOrderByValueExprs()
|
boolean |
getSearchLastVersion()
|
ValueExpr[] |
getSelectValueExprs()
|
java.lang.String |
getSql(org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
This method should only be called if hasSql() return true. |
java.lang.String |
getStyleHint()
|
boolean |
hasSql()
|
void |
mergeCondition(PredicateExpr predicateExpr)
Merges the where clause of this query with the given condition using the AND operator. |
void |
prepare(QueryContext context)
|
void |
setAnnotateLinkFields(boolean annotateLinkFields)
|
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(ValueExprList selectClause,
PredicateExpr whereClause,
FullTextQuery fullTextQuery,
ValueExprList orderByClause,
java.util.List sortOrders,
int limit)
| Method Detail |
|---|
public void prepare(QueryContext context)
throws org.outerj.daisy.repository.query.QueryException
org.outerj.daisy.repository.query.QueryExceptionpublic boolean hasSql()
public java.lang.String getSql(org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
throws org.outerj.daisy.repository.query.QueryException
hasSql() return true.
org.outerj.daisy.repository.query.QueryExceptionpublic FullTextQuery getFullTextQuery()
public void bindSql(java.sql.PreparedStatement stmt,
int bindPos,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
throws java.sql.SQLException,
org.outerj.daisy.repository.query.QueryException
java.sql.SQLException
org.outerj.daisy.repository.query.QueryExceptionpublic ValueExpr[] getSelectValueExprs()
public ValueExpr[] getOrderByValueExprs()
public org.outerj.daisy.repository.query.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 boolean getAnnotateLinkFields()
public void setAnnotateLinkFields(boolean annotateLinkFields)
public void mergeCondition(PredicateExpr predicateExpr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||