|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.hibernate.example.ExampleTree
public class ExampleTree
facility to create subcriteria and examples for associations of an input entity
| Constructor Summary | |
|---|---|
ExampleTree(Object entity)
builds an instance of ExampleTree associated with the input entity |
|
| Method Summary | |
|---|---|
ExampleTree |
add(String associationPath,
org.hibernate.criterion.Criterion criterion)
add an additional criterion for properties of the subentity at the given path |
org.hibernate.Criteria |
appendTo(org.hibernate.Criteria crit,
org.hibernate.Session ses)
appends examples and subcriteria, created for the entity this example tree was initialized with, to the input criteria, and then returns it |
org.hibernate.Criteria |
create(org.hibernate.Session ses)
creates a criteria with the input session, adds to it an example for the input entity, and creates subcriteria and related examples for non-null property values on the filter entity that correspond to associations |
ExampleTree |
enableLike()
Use the "like" operator for all string-valued properties |
ExampleTree |
enableLike(org.hibernate.criterion.MatchMode matchMode)
Use the "like" operator for all string-valued properties |
ExampleTree |
excludeNone()
Don't exclude null or zero-valued properties |
ExampleTree |
excludeProperty(String associationPath,
String propertyName)
exclude a property from the default filter (note that additional conditions may still be applied for this property) |
ExampleTree |
excludeZeroes()
Exclude zero-valued properties |
ExampleTree |
ignoreCase()
Ignore case for all string-valued properties |
ExampleTree |
overridePropertyFilter(String associationPath,
String propertyName,
org.hibernate.criterion.Criterion override)
override filter behavior for a given property with the input criterion. |
ExampleTree |
setEscapeCharacter(Character escapeCharacter)
Set escape character for "like" clause |
ExampleTree |
setPropertySelector(org.hibernate.criterion.Example.PropertySelector selector)
Set the property selector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleTree(Object entity)
ExampleTree associated with the input entity
entity - the example entity| Method Detail |
|---|
public org.hibernate.Criteria create(org.hibernate.Session ses)
ses - the session
public org.hibernate.Criteria appendTo(org.hibernate.Criteria crit,
org.hibernate.Session ses)
crit - the criteria to append toses - the session
public ExampleTree setEscapeCharacter(Character escapeCharacter)
escapeCharacter - the escape character
public ExampleTree setPropertySelector(org.hibernate.criterion.Example.PropertySelector selector)
selector - the property selector
public ExampleTree excludeZeroes()
public ExampleTree excludeNone()
public ExampleTree enableLike(org.hibernate.criterion.MatchMode matchMode)
matchMode - the match mode
public ExampleTree enableLike()
public ExampleTree ignoreCase()
public ExampleTree add(String associationPath,
org.hibernate.criterion.Criterion criterion)
associationPath - the association path with respect to the filter entitycriterion - the criterion to add
public ExampleTree excludeProperty(String associationPath,
String propertyName)
associationPath - the association path of the property with respect to the filter entitypropertyName - the property name
public ExampleTree overridePropertyFilter(String associationPath,
String propertyName,
org.hibernate.criterion.Criterion override)
associationPath - the association path of the propertypropertyName - the property nameoverride - the new filter behavior for the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||