| Constructor and Description |
|---|
QueryOptions() |
QueryOptions(QueryOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPageIndex()
Defines which page of results the query is to retrieve.
|
DBDatabase |
getQueryDatabase() |
QueryType |
getQueryType() |
int |
getRowLimit()
Returns the current row limit.
|
ColumnProvider[] |
getSortColumns()
Support DBvolution at Patreon |
boolean |
isBlankQueryAllowed()
Support DBvolution at Patreon |
boolean |
isCartesianJoinAllowed()
Support DBvolution at Patreon |
boolean |
isCreatingNativeQuery()
Used while simulating OUTER JOIN to indicate that the simulation is
occurring.
|
boolean |
isMatchAllConditions()
Indicates whether this query will use AND rather than OR to add the
conditions.
|
boolean |
isMatchAllRelationships()
Support DBvolution at Patreon |
boolean |
isMatchAny()
Indicates whether this query will use OR rather than AND to add the
conditions.
|
boolean |
isUseANSISyntax()
Support DBvolution at Patreon |
void |
setBlankQueryAllowed(boolean blankQueryAllowed) |
void |
setCartesianJoinAllowed(boolean cartesianJoinAllowed) |
void |
setCreatingNativeQuery(boolean creatingNativeQuery)
Used while simulating OUTER JOIN to indicate that the simulation is
occurring.
|
void |
setMatchAllConditions()
Changes the DBQuery to using all ANDs to connect the criteria
|
void |
setMatchAllRelationships()
Controls how relationships, that is Foreign Keys, are compared.
|
void |
setMatchAnyConditions()
Changes the DBQuery to using all ORs to connect the criteria
|
void |
setMatchAnyRelationship()
Controls how relationships, that is Foreign Keys, are compared.
|
void |
setPageIndex(int pageIndex) |
void |
setQueryDatabase(DBDatabase db) |
void |
setQueryType(QueryType queryType) |
void |
setRowLimit(int rowLimit) |
void |
setSortColumns(ColumnProvider[] sortColumns) |
void |
setUseANSISyntax(boolean useANSISyntax) |
public QueryOptions()
public QueryOptions(QueryOptions opts)
public boolean isMatchAllConditions()
Support DBvolution at Patreon
public boolean isMatchAny()
Support DBvolution at Patreon
public void setMatchAllConditions()
public void setMatchAnyConditions()
public int getRowLimit()
The value will be -1 if no row limit is set.
Support DBvolution at Patreon
public final void setRowLimit(int rowLimit)
rowLimit - the rowLimit to setpublic ColumnProvider[] getSortColumns()
Support DBvolution at Patreon
public final void setSortColumns(ColumnProvider[] sortColumns)
sortColumns - the sortColumns to setpublic boolean isBlankQueryAllowed()
Support DBvolution at Patreon
public final void setBlankQueryAllowed(boolean blankQueryAllowed)
blankQueryAllowed - the blankQueryAllowed to setpublic boolean isUseANSISyntax()
Support DBvolution at Patreon
public final void setUseANSISyntax(boolean useANSISyntax)
useANSISyntax - the useANSISyntax to setpublic boolean isCartesianJoinAllowed()
Support DBvolution at Patreon
public final void setCartesianJoinAllowed(boolean cartesianJoinAllowed)
cartesianJoinAllowed - the cartesianJoinAllowed to setpublic int getPageIndex()
getRowLimit() defines the size of a page, and this method
return which page is to be retrieved.
Be default the page index is zero.
The first item on the page will be (pageindex*rowlimit) , and the first item on the next page will be ((pageindex+1)*rowlimit).
Support DBvolution at Patreon
public final void setPageIndex(int pageIndex)
pageIndex - the pageIndex to setpublic void setMatchAnyRelationship()
If there are multiple FKs between 2 DBRows setMatchAnyRelationship() will switch the query to connecting the 2 rows if ANY of the FKs match, rather the normal case of ALL.
public void setMatchAllRelationships()
If there are multiple FKs between 2 DBRows setMatchAllRelationship() will switch the query to connecting the 2 rows if ALL of the FKs match.
This is the default option.
public boolean isMatchAllRelationships()
Support DBvolution at Patreon
public boolean isCreatingNativeQuery()
Support DBvolution at Patreon
public final void setCreatingNativeQuery(boolean creatingNativeQuery)
creatingNativeQuery - public QueryType getQueryType()
public final void setQueryType(QueryType queryType)
public final void setQueryDatabase(DBDatabase db)
public DBDatabase getQueryDatabase()
Copyright © 2018. All Rights Reserved.