Package org.opennms.netmgt.dao.hibernate
Class HibernateCriteriaConverter.HibernateCriteriaVisitor
- java.lang.Object
-
- org.opennms.core.criteria.AbstractCriteriaVisitor
-
- org.opennms.netmgt.dao.hibernate.HibernateCriteriaConverter.HibernateCriteriaVisitor
-
- All Implemented Interfaces:
Criteria.CriteriaVisitor
- Direct Known Subclasses:
HibernateCriteriaConverter.CountHibernateCriteriaVisitor
- Enclosing class:
- HibernateCriteriaConverter
public static class HibernateCriteriaConverter.HibernateCriteriaVisitor extends AbstractCriteriaVisitor
-
-
Constructor Summary
Constructors Constructor Description HibernateCriteriaVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.criterion.DetachedCriteria
getCriteria()
org.hibernate.Criteria
getCriteria(org.hibernate.Session session)
void
visitAlias(Alias alias)
void
visitClassAndRootAlias(Class<?> clazz, String rootAlias)
IfrootAlias
is null, then Hibernate will use a default alias ofthis
.void
visitDistinct(boolean distinct)
void
visitFetch(Fetch fetch)
void
visitLimit(Integer limit)
void
visitLockType(Criteria.LockType lock)
void
visitOffset(Integer offset)
void
visitOrder(Order order)
void
visitRestriction(Restriction restriction)
-
Methods inherited from class org.opennms.core.criteria.AbstractCriteriaVisitor
visitAliasesFinished, visitFetchesFinished, visitOrdersFinished, visitRestrictionsFinished
-
-
-
-
Method Detail
-
getCriteria
public org.hibernate.Criteria getCriteria(org.hibernate.Session session)
-
getCriteria
public org.hibernate.criterion.DetachedCriteria getCriteria()
-
visitClassAndRootAlias
public void visitClassAndRootAlias(Class<?> clazz, String rootAlias)
IfrootAlias
is null, then Hibernate will use a default alias ofthis
.- Specified by:
visitClassAndRootAlias
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitClassAndRootAlias
in classAbstractCriteriaVisitor
-
visitOrder
public void visitOrder(Order order)
- Specified by:
visitOrder
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitOrder
in classAbstractCriteriaVisitor
-
visitAlias
public void visitAlias(Alias alias)
- Specified by:
visitAlias
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitAlias
in classAbstractCriteriaVisitor
-
visitFetch
public void visitFetch(Fetch fetch)
- Specified by:
visitFetch
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitFetch
in classAbstractCriteriaVisitor
-
visitLockType
public void visitLockType(Criteria.LockType lock)
- Specified by:
visitLockType
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitLockType
in classAbstractCriteriaVisitor
-
visitRestriction
public void visitRestriction(Restriction restriction)
- Specified by:
visitRestriction
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitRestriction
in classAbstractCriteriaVisitor
-
visitDistinct
public void visitDistinct(boolean distinct)
- Specified by:
visitDistinct
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitDistinct
in classAbstractCriteriaVisitor
-
visitLimit
public void visitLimit(Integer limit)
- Specified by:
visitLimit
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitLimit
in classAbstractCriteriaVisitor
-
visitOffset
public void visitOffset(Integer offset)
- Specified by:
visitOffset
in interfaceCriteria.CriteriaVisitor
- Overrides:
visitOffset
in classAbstractCriteriaVisitor
-
-