|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.dao.hibernate.AbstractCriteriaBuilder
public abstract class AbstractCriteriaBuilder
Base class for CriteriaBuilders, add some utility methods.
| Constructor Summary | |
|---|---|
AbstractCriteriaBuilder()
|
|
| Method Summary | |
|---|---|
abstract Criteria |
build(Criteria criteria,
Object filter)
Add Restrictions to Critera from filter |
protected void |
eq(Criteria criteria,
String property,
Object value)
Add a '=' Restriction on property |
protected void |
ge(Criteria criteria,
String property,
Object value)
Add a '>=' Restriction on property |
protected void |
le(Criteria criteria,
String property,
Object value)
Add a '<=' Restriction on property |
protected void |
like(Criteria criteria,
String property,
String value)
Add a ilike Restriction adding wrapping value on '%' and replacing '*' for '%' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCriteriaBuilder()
| Method Detail |
|---|
public abstract Criteria build(Criteria criteria,
Object filter)
CriteriaBuilder
build in interface CriteriaBuildercriteria - criteria to add restrictionsfilter - Filter data
protected void eq(Criteria criteria,
String property,
Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction value
protected void le(Criteria criteria,
String property,
Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction value
protected void ge(Criteria criteria,
String property,
Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction value
protected void like(Criteria criteria,
String property,
String value)
criteria - Criteria to add restrictionproperty - property pathvalue - text for the ilike restriction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||