E - public class HqlAndParametersBuilder<E extends TopiaEntity> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected Class<E> |
entityClass |
protected Set<String> |
orderByArguments |
protected Map<String,Object> |
parameters |
protected Set<String> |
whereClauses |
| Constructor and Description |
|---|
HqlAndParametersBuilder(Class<E> entityClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContains(String property,
Object value) |
void |
addEquals(String property,
Object value) |
void |
addIn(String property,
Iterable<Object> values) |
protected void |
addInOrNotIn(String property,
Iterable<Object> values,
boolean in) |
void |
addNotContains(String property,
Object value) |
void |
addNotEquals(String property,
Object value) |
void |
addNotIn(String property,
Iterable<Object> values) |
void |
addNotNull(String property) |
void |
addNull(String property) |
void |
addTopiaIdEquals(String property,
String topiaId) |
void |
addTopiaIdIn(String property,
Iterable<String> topiaIds) |
void |
addWhereClause(String whereClause) |
void |
addWhereClause(String whereClause,
Map<String,Object> hqlParameters) |
String |
getHql() |
Map<String,Object> |
getHqlParameters() |
Set<String> |
getWhereClauses() |
boolean |
isOrderByClausePresent() |
protected String |
putHqlParameterWithAvailableName(String propertyName,
Object value)
Add a parameter in the parameters map searching with the suitable parameter name
in order to prevent conflicts.
|
void |
setAlias(String alias) |
void |
setOrderByArguments(Set<String> orderByArguments) |
void |
setOrderByArguments(String... orderByArguments) |
void |
setParameters(Map<String,Object> parameters) |
void |
setWhereClauses(Set<String> whereClauses) |
protected Class<E extends TopiaEntity> entityClass
protected String alias
public void setAlias(String alias)
public void addNull(String property)
public void addNotNull(String property)
public void setOrderByArguments(String... orderByArguments)
protected void addInOrNotIn(String property, Iterable<Object> values, boolean in)
in - true if property value must be in given collection, false if value
must not be in given collectionpublic void addWhereClause(String whereClause)
public String getHql()
protected String putHqlParameterWithAvailableName(String propertyName, Object value)
public boolean isOrderByClausePresent()
Copyright © 2004–2013 CodeLutin. All rights reserved.