public abstract class AbstractCriteriaBuilder extends Object implements CriteriaBuilder
| Constructor and Description |
|---|
AbstractCriteriaBuilder() |
| Modifier and Type | Method and Description |
|---|---|
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 '%'
|
public abstract Criteria build(Criteria criteria, Object filter)
CriteriaBuilderbuild in interface CriteriaBuildercriteria - criteria to add restrictionsfilter - Filter dataprotected void eq(Criteria criteria, String property, Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction valueprotected void le(Criteria criteria, String property, Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction valueprotected void ge(Criteria criteria, String property, Object value)
criteria - Criteria to add restrictionproperty - property pathvalue - restriction valueCopyright © 2014 JDAL. All Rights Reserved.