E
- the type of query item this QueryClause handlespublic abstract class AbstractQueryClause<E extends QueryItem> extends BaseObject implements QueryClause<E>
Query
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
DELIM_AND |
static String |
DELIM_COMMA |
static String |
PREFIX_FROM |
static String |
PREFIX_GROUP_BY |
static String |
PREFIX_HAVING |
static String |
PREFIX_ORDER_BY |
static String |
PREFIX_SELECT |
static String |
PREFIX_WHERE |
Constructor and Description |
---|
AbstractQueryClause(Query query,
String prefix,
String delim) |
Modifier and Type | Method and Description |
---|---|
QueryClause<E> |
addItem(E item) |
QueryClause<E> |
addItem(int index,
E item) |
QueryClause<E> |
addItems(E... items) |
QueryClause<E> |
addItems(Iterable<E> items) |
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list
that are to be included in equals(...) and hashCode() evaluation
|
E |
getItem(int index) |
int |
getItemCount() |
List<E> |
getItems() |
int |
indexOf(E item) |
boolean |
isEmpty() |
QueryClause<E> |
removeItem(E item) |
QueryClause<E> |
removeItem(int index) |
QueryClause<E> |
removeItems() |
QueryClause<E> |
setItems(E... items) |
String |
toSql() |
String |
toSql(boolean includeSchemaInColumnPaths) |
String |
toString() |
classEquals, equals, hashCode
public static final String PREFIX_SELECT
public static final String PREFIX_FROM
public static final String PREFIX_WHERE
public static final String PREFIX_GROUP_BY
public static final String PREFIX_HAVING
public static final String PREFIX_ORDER_BY
public static final String DELIM_COMMA
public static final String DELIM_AND
public QueryClause<E> setItems(E... items)
setItems
in interface QueryClause<E extends QueryItem>
public QueryClause<E> addItems(E... items)
addItems
in interface QueryClause<E extends QueryItem>
public QueryClause<E> addItems(Iterable<E> items)
addItems
in interface QueryClause<E extends QueryItem>
public QueryClause<E> addItem(int index, E item)
addItem
in interface QueryClause<E extends QueryItem>
public QueryClause<E> addItem(E item)
addItem
in interface QueryClause<E extends QueryItem>
public int getItemCount()
getItemCount
in interface QueryClause<E extends QueryItem>
public int indexOf(E item)
indexOf
in interface QueryClause<E extends QueryItem>
public boolean isEmpty()
isEmpty
in interface QueryClause<E extends QueryItem>
public E getItem(int index)
getItem
in interface QueryClause<E extends QueryItem>
public List<E> getItems()
getItems
in interface QueryClause<E extends QueryItem>
public QueryClause<E> removeItem(int index)
removeItem
in interface QueryClause<E extends QueryItem>
public QueryClause<E> removeItem(E item)
removeItem
in interface QueryClause<E extends QueryItem>
public QueryClause<E> removeItems()
removeItems
in interface QueryClause<E extends QueryItem>
public String toSql()
toSql
in interface QueryClause<E extends QueryItem>
public String toSql(boolean includeSchemaInColumnPaths)
toSql
in interface QueryClause<E extends QueryItem>
public String toString()
toString
in class BaseObject
protected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity
in class BaseObject
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.