public class FindData extends Object implements Serializable
| Constructor and Description |
|---|
FindData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCriterion(Object criterion)
Add a new criterion to the criterions list.
|
void |
addCriterionAlias(String associationPath,
String alias)
Add a new criterion alias for the given association path.
|
void |
addCriterionAlias(String associationPath,
String alias,
Object joinType)
Add a new criterion alias and join type for the given association path.
|
void |
addCriterionAlias(String associationPath,
String alias,
Object joinType,
Object withClause)
Add a new criterion alias and join type for the given association path.
|
void |
addOrder(FindOrder findOrder)
Add a new FindOrder object to the list used to generate "order by" from
the database.
|
void |
addQueryParameter(Object parameter)
Add a new query parameter.
|
Object |
getCriteriaProjection() |
Object |
getCriterion() |
Map<String,String> |
getCriterionAliases() |
Map<String,Object> |
getCriterionJoinTypes() |
List<Object> |
getCriterions()
Return the criterions list.
|
Map<String,Object> |
getCriterionWithClauses() |
Object |
getCustomData() |
boolean |
getDeepFindAll() |
static int |
getDefaultMaxResults() |
Class<?> |
getDomainClass() |
Object |
getExample() |
EFindMethod |
getFindMethod() |
int |
getFirstResult() |
Serializable |
getKey() |
int |
getMaxResults() |
List<FindOrder> |
getOrder() |
String |
getQuery() |
List<Object> |
getQueryParameters() |
boolean |
getUseJpaPositionalParameters()
If false, "old" style HQL positional parameters are used.
|
void |
setCriteriaProjection(Object criteriaProjection) |
void |
setCriterion(Object criterion)
Clears the list and sets the first criterion data for the CRITERIA
findMethod.
|
void |
setCriterions(List<Object> criterions) |
void |
setCustomData(Object customData)
Set the customData object.
|
void |
setDeepFindAll(boolean deepFindAll)
Set the deepFindAll flag.
|
static void |
setDefaultMaxResults(int defaultMaxResults) |
void |
setDomainClass(Class<?> domainClass)
Set the domain class for CRITERIA and DEFAULT findMethods.
|
void |
setExample(Object example)
Set the example object for the EXAMPLE findMethod.
|
void |
setFindMethod(EFindMethod findMethod)
Controls the method used by the persistence layer for finding instances
in the database.
|
void |
setFirstResult(int firstResult)
First row to be returned by the FindAll action.
|
void |
setKey(Serializable key)
Set the key (database primary key) for the DEFAULT findMethod.
|
void |
setMaxResults(int maxResults)
Maximum number of rows returned by the FindAll action.
|
void |
setOrder(List<FindOrder> order) |
void |
setQuery(String query)
Set the query string for the QUERY findMethod.
|
void |
setQueryParameters(List<Object> queryParameters) |
void |
setUseJpaPositionalParameters(boolean useJpaPositionalParameters)
If false, "old" style HQL positional parameters are used.
|
public void addQueryParameter(Object parameter)
parameter - (missing javadoc)public void addCriterionAlias(String associationPath, String alias)
associationPath - the association path to add an alias foralias - the alias to usepublic void addCriterionAlias(String associationPath, String alias, Object joinType)
associationPath - the association path to add an alias foralias - the alias to usejoinType - the join type to usepublic void addCriterionAlias(String associationPath, String alias, Object joinType, Object withClause)
associationPath - the association path to add an alias foralias - the alias to usejoinType - the join type to usewithClause - the withClause to usepublic void addOrder(FindOrder findOrder)
findOrder - (missing javadoc)public String getQuery()
public void setQuery(String query)
query - The query to set.public Object getCriterion()
public void setCriterion(Object criterion)
criterion - The criterion to set.public List<Object> getCriterions()
public void setCriterions(List<Object> criterions)
criterions - the criterions to setpublic void addCriterion(Object criterion)
criterion - the criterion to add.public EFindMethod getFindMethod()
public void setFindMethod(EFindMethod findMethod)
findMethod - The findMethod to set.public int getFirstResult()
public void setFirstResult(int firstResult)
firstResult - The firstResult to set. Must be >= 0.public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - The maxResults to set. Must be >= 0.public void setQueryParameters(List<Object> queryParameters)
queryParameters - The queryParameters to set.public Object getCustomData()
public void setCustomData(Object customData)
CUSTOM find method.customData - the customData to setpublic static int getDefaultMaxResults()
public static void setDefaultMaxResults(int defaultMaxResults)
defaultMaxResults - The defaultMaxResults to set.public Class<?> getDomainClass()
public void setDomainClass(Class<?> domainClass)
domainClass - The domainClass to set.public Object getExample()
public void setExample(Object example)
example - The example to set.public Serializable getKey()
public void setKey(Serializable key)
key - The key to set.public Map<String,String> getCriterionAliases()
public Map<String,Object> getCriterionJoinTypes()
public Map<String,Object> getCriterionWithClauses()
public boolean getDeepFindAll()
public void setDeepFindAll(boolean deepFindAll)
deepFindAll - (missing javadoc)public Object getCriteriaProjection()
public void setCriteriaProjection(Object criteriaProjection)
criteriaProjection - the criteriaProjection to setpublic boolean getUseJpaPositionalParameters()
public void setUseJpaPositionalParameters(boolean useJpaPositionalParameters)
useJpaPositionalParameters - true if JPA style positional parameters should be used in HQL queriesCopyright © 2006–2018 Esito AS. All rights reserved.