|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.report.query.hibernate.ReportCriterion
public abstract class ReportCriterion
This class explicitly designs a criterion for a HibernateReportQuery. The primary goal of this class is to hold all the informations and metainformations describing a particular Criterion for the parent Query. Implementing classes must also implement a method that return a Hibernate Criterion based on those informations. Implementing the ReportCriterion : ================================== - makeCriterion() will generate the corresponding Hibernate Criterion, based on the informations you fed the instance with. You might not need all of its properties (see the setters below) and those properties exist for convenience in case you need them.
| Constructor Summary | |
|---|---|
ReportCriterion()
|
|
ReportCriterion(String criterionName,
String attributePath)
Rich constructor for a ReportCriterion. |
|
| Method Summary | |
|---|---|
String |
getAttributePath()
|
String |
getCriterionName()
|
protected String |
getEntityAlias()
|
protected Class<?> |
getEntityClass()
|
protected QueryOperator |
getOperator()
|
protected Class<?> |
getParamClass()
|
Object[] |
getParameters()
|
abstract org.hibernate.criterion.Criterion |
makeCriterion()
This method will convert, using some of its properties, a Hibernate Criterion corresponding to that ReportCriterion. |
void |
setAttributePath(String attributePath)
|
void |
setCriterionName(String criterionName)
|
protected void |
setEntityAlias(String entityAlias)
Sets an alternate alias for the target entity. |
protected void |
setEntityClass(Class<?> entityClass)
|
protected void |
setOperator(QueryOperator operator)
Sets a semantic hint about what will the criterion do. |
protected void |
setParamClass(Class<?> paramClass)
Specify the class of the parameters. |
void |
setParameter(Object... params)
|
protected void |
setParameters(Object[] parameters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportCriterion()
public ReportCriterion(String criterionName,
String attributePath)
criterionName - the name for that Criterion.attributePath - the path to the property of the target Hibernate entity.| Method Detail |
|---|
public String getCriterionName()
public void setCriterionName(String criterionName)
public void setAttributePath(String attributePath)
public void setParameter(Object... params)
public String getAttributePath()
public Object[] getParameters()
protected Class<?> getEntityClass()
protected void setEntityClass(Class<?> entityClass)
protected String getEntityAlias()
protected void setEntityAlias(String entityAlias)
entityAlias - protected Class<?> getParamClass()
protected void setParamClass(Class<?> paramClass)
paramClass - the java class of the parameters.protected QueryOperator getOperator()
protected void setOperator(QueryOperator operator)
operator - protected void setParameters(Object[] parameters)
public abstract org.hibernate.criterion.Criterion makeCriterion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||