|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NamedParamRestriction
This interface represents a restriction applied to the query SELECT statement to filter the search result.
Named parameter is used to bind the query.
| Method Summary | |
|---|---|
java.lang.String |
getClause()
Generate the WHERE clause fragment (after prefixing "WHERE" or "AND" keywords) that will
be appended to the SELECT statement. |
NamedParams |
getParameters()
Return an instance of NamedParams that defines the mapping of named query parameters
(key:parameter name, value:parameter value). |
| Method Detail |
|---|
java.lang.String getClause()
WHERE clause fragment (after prefixing "WHERE" or "AND" keywords) that will
be appended to the SELECT statement.
The key words "WHERE" and "AND" is excluded from this clause fragment.
The clause fragment can contain multiple named query parameters of the form :name.
For example, a valid clause can be "p.price BETWEEN :priceFrom and :priceTo"".
NamedParams getParameters()
NamedParams that defines the mapping of named query parameters
(key:parameter name, value:parameter value).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||