T
- Type of value@GwtCompatible
public abstract class Query<T>
extends java.lang.Object
If no selection is specified, all columns will be returned.
A Query instance is obtained by using QueryBuilder
. Query instances are immutable.
Modifier and Type | Class and Description |
---|---|
static class |
Query.Builder<T>
A class for incrementally build a Query.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
protected static java.lang.String |
XML_ROOT_ELEMENT |
Modifier | Constructor and Description |
---|---|
protected |
Query() |
protected |
Query(Projection<? extends Column> projection,
Criteria criteria,
PagingInfo pagingInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Column |
getColumnIgnoreCase(java.lang.String alias)
Returns the
Column associated with the given alias
ignoring case sensitivity. |
abstract Criteria |
getCriteria()
Gets the
Criteria |
PagingInfo |
getPagingInfo()
Gets the
PagingInfo |
Projection |
getProjection()
Gets the
Projection |
int |
hashCode() |
boolean |
hasSearch()
Checks if the search criteria is being used
|
boolean |
hasSort()
Checks if sorting information has been provided
|
boolean |
isGrouping()
Checks if at least once column is being grouped by
|
boolean |
isProjection() |
static com.appian.core.base.ToStringFunction<Query<?>> |
multilineToString(int indent)
Returns a multiline string representation of the
Query
by indenting each element with given number of characters. |
protected abstract void |
setCriteria(Criteria criteria)
Sets the
Criteria |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a multiline string representation of the
Query |
protected static final java.lang.String XML_ROOT_ELEMENT
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
protected Query()
protected Query(Projection<? extends Column> projection, Criteria criteria, PagingInfo pagingInfo)
public Projection getProjection()
Projection
Projection
public PagingInfo getPagingInfo()
PagingInfo
PagingInfo
protected abstract void setCriteria(Criteria criteria)
Criteria
criteria
- the Criteria
public boolean hasSort()
public boolean isGrouping()
public boolean hasSearch()
public Column getColumnIgnoreCase(java.lang.String alias)
Column
associated with the given alias
ignoring case sensitivity.alias
- Column
associated with the given aliaspublic boolean isProjection()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
Query
Query
public static com.appian.core.base.ToStringFunction<Query<?>> multilineToString(int indent)
Query
by indenting each element with given number of characters.indent
- number of characters to indentToStringFunction
for Query
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.