|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.webapp.query.QRestrictor<T>
to.etc.webapp.query.QCriteriaQueryBase<T>
public class QCriteriaQueryBase<T>
Base class representing most of the query structure, just not the public interface part.
Constructor Summary | |
---|---|
protected |
QCriteriaQueryBase(java.lang.Class<T> clz)
|
protected |
QCriteriaQueryBase(ICriteriaTableDef<T> meta)
|
Method Summary | |
---|---|
QCriteriaQueryBase<T> |
add(QOrder r)
Add an order clause to the list of sort items. |
protected void |
addColumn(QSelectionItem item,
java.lang.String alias)
Add a column selector to the selection list. |
protected void |
addPropertySelection(QSelectionFunction f,
java.lang.String prop,
java.lang.String alias)
Add a simple property selector to the list. |
QCriteriaQueryBase<T> |
ascending(java.lang.String property)
Add a property to do an ascending sort on. |
protected QCriteriaQueryBase<T> |
avg(java.lang.String property)
Select the average value of a property in the set. |
protected QCriteriaQueryBase<T> |
avg(java.lang.String property,
java.lang.String alias)
Select the average value of a property in the set. |
protected QCriteriaQueryBase<T> |
count(java.lang.String property)
Select a count over the result set. |
protected QCriteriaQueryBase<T> |
count(java.lang.String property,
java.lang.String alias)
Select a count over the result set. |
protected QCriteriaQueryBase<T> |
countDistinct(java.lang.String property)
Select a count of the distinct values over the result set. |
protected QCriteriaQueryBase<T> |
countDistinct(java.lang.String property,
java.lang.String alias)
Select a count of the distinct values over the result set. |
QCriteriaQueryBase<T> |
descending(java.lang.String property)
Add a property to do a descending sort on. |
protected QCriteriaQueryBase<T> |
distinct(java.lang.String property)
Select of the distinct values over the result set. |
protected QCriteriaQueryBase<T> |
distinct(java.lang.String property,
java.lang.String alias)
Select of the distinct values over the result set. |
java.util.List<QSelectionColumn> |
getColumnList()
Returns all selected columns. |
int |
getLimit()
Returns the limit. |
java.lang.Object |
getOption(java.lang.String name)
Get the value stored for a given option. |
java.util.List<QOrder> |
getOrder()
Returns the order-by list. |
QOperatorNode |
getRestrictions()
|
int |
getStart()
Returns the start index set. |
int |
getTimeout()
|
boolean |
hasOption(java.lang.String name)
Returns T if the specified option is present. |
QCriteriaQueryBase<T> |
limit(int limit)
Limit the #of rows to the specified count. |
protected QCriteriaQueryBase<T> |
max(java.lang.String property)
Select the max of a property in the set. |
protected QCriteriaQueryBase<T> |
max(java.lang.String property,
java.lang.String alias)
Select the max of a property in the set. |
protected QCriteriaQueryBase<T> |
min(java.lang.String property)
Select the minimal value of a property in the set. |
protected QCriteriaQueryBase<T> |
min(java.lang.String property,
java.lang.String alias)
Select the minimal value of a property in the set. |
protected QCriteriaQueryBase<T> |
selectProperty(java.lang.String property)
Select a property value from the base property in the result set. |
protected QCriteriaQueryBase<T> |
selectProperty(java.lang.String property,
java.lang.String alias)
Select a property value from the base property in the result set. |
void |
setOption(java.lang.String name,
java.lang.Object val)
Set an option for the query or some of it's listeners. |
void |
setRestrictions(QOperatorNode restrictions)
|
void |
setTimeout(int timeout)
Set the query timeout, in seconds. |
QCriteriaQueryBase<T> |
start(int start)
Start returning rows at the specified index in the result set (0-based). |
protected QCriteriaQueryBase<T> |
sum(java.lang.String property)
Select the sum of a property in the set. |
protected QCriteriaQueryBase<T> |
sum(java.lang.String property,
java.lang.String alias)
Select the sum of a property in the set. |
Methods inherited from class to.etc.webapp.query.QRestrictor |
---|
add, and, between, eq, eq, eq, exists, ge, ge, ge, getBaseClass, getMetaTable, getReturnClass, gt, gt, gt, hasRestrictions, ilike, internalAdd, isnotnull, isnull, le, le, le, like, lt, lt, lt, ne, ne, ne, or, or, sqlCondition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected QCriteriaQueryBase(java.lang.Class<T> clz)
protected QCriteriaQueryBase(ICriteriaTableDef<T> meta)
Method Detail |
---|
public QOperatorNode getRestrictions()
getRestrictions
in class QRestrictor<T>
public void setRestrictions(QOperatorNode restrictions)
setRestrictions
in class QRestrictor<T>
public java.util.List<QSelectionColumn> getColumnList()
public void setOption(java.lang.String name, java.lang.Object val)
name
- val
- public boolean hasOption(java.lang.String name)
name
-
public java.lang.Object getOption(java.lang.String name)
name
-
protected void addColumn(QSelectionItem item, java.lang.String alias)
protected void addPropertySelection(QSelectionFunction f, java.lang.String prop, java.lang.String alias)
f
- prop
- alias
- protected QCriteriaQueryBase<T> selectProperty(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> selectProperty(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> max(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> max(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> min(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> min(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> avg(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> avg(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> sum(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> sum(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> count(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> count(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> countDistinct(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> countDistinct(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selectedalias
- The alias for using the property in the restrictions clause.
protected QCriteriaQueryBase<T> distinct(java.lang.String property)
property
- The property whose literal value is to be selected
protected QCriteriaQueryBase<T> distinct(java.lang.String property, java.lang.String alias)
property
- The property whose literal value is to be selected
public QCriteriaQueryBase<T> add(QOrder r)
r
-
public QCriteriaQueryBase<T> ascending(java.lang.String property)
property
-
public QCriteriaQueryBase<T> descending(java.lang.String property)
property
-
public QCriteriaQueryBase<T> limit(int limit)
limit
-
public QCriteriaQueryBase<T> start(int start)
start
-
public final int getLimit()
public final int getStart()
public final java.util.List<QOrder> getOrder()
public int getTimeout()
public void setTimeout(int timeout)
QQueryTimeoutException
when the query is aborted because it ran too long. When unset the value defaults
to -1 which means "use the default timeout"; 0 means "no timeout at all"; all others is the timeout in seconds.
timeout
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |