|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.persistence.repository.QueryCriteria.Clause
public static class QueryCriteria.Clause
A clause representing the criteria the entities have to match. The parameters used in this clause are initialized by the caller and passed as such to the clause. By letting the caller the charge of managing the parameters, they can be used accross several clauses and in different process implied in the final query build.
Constructor Summary | |
---|---|
QueryCriteria.Clause(String criterionText,
T parameters)
Constructs a clause from the specified first criterion and with the specified parameters. |
|
QueryCriteria.Clause(T parameters)
Constructs a clause with the specified parameters. |
Method Summary | ||
---|---|---|
QueryCriteria.Clause |
add(String criterionText)
Adds a criterion to this clause. |
|
|
parameters()
Gets the parameters refered by the clause. |
|
QueryCriteria.Clause |
replaceLast(String criterionText)
Replaces the last criterion by the specified one. |
|
String |
text()
Gets the text of the clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryCriteria.Clause(String criterionText, T parameters)
T
- the concrete type of the parameters to use in this clause.criterionText
- a text representation of the criterion to add. The text representatipn
is in charge to the QueryCriteria
implementation.parameters
- the parameters initialized by the caller and that will be used in this
clause.public QueryCriteria.Clause(T parameters)
T
- the concrete type of the parameters to use in this clause.parameters
- the parameters initialized by the caller and that will be used in this
clause.Method Detail |
---|
public QueryCriteria.Clause add(String criterionText)
criterionText
- a text representation of the criterion to add. The text representation
is in charge to the QueryCriteria
implementation. If the text is null or empty, then
nothing is added.
public QueryCriteria.Clause replaceLast(String criterionText)
criterionText
- a text representation of the criterion to add. The text representatipn
is in charge to the QueryCriteria
implementation.
public String text()
public <T extends Parameters> T parameters()
T
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |