Package org.opennms.netmgt.model
Class OnmsCriteria.OnmsDetachedCriteria
- java.lang.Object
-
- org.hibernate.criterion.DetachedCriteria
-
- org.opennms.netmgt.model.OnmsCriteria.OnmsDetachedCriteria
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.hibernate.criterion.CriteriaSpecification
- Enclosing class:
- OnmsCriteria
public static class OnmsCriteria.OnmsDetachedCriteria extends org.hibernate.criterion.DetachedCriteria implements Cloneable
This is a subclass of Hibernate's DetachedCriteria, providing a few more of the Criteria methods than are available in DetachedCriteria. We create our own CriteriaImpl and pass it to the constructor for our superclass, keeping a reference to the CriteriaImpl for ourselves so we can use it for feature that DetachedCriteria doesn't support.- Author:
- DJ Gregor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OnmsDetachedCriteria(String entityName)
protected
OnmsDetachedCriteria(String entityName, String alias)
protected
OnmsDetachedCriteria(org.hibernate.impl.CriteriaImpl impl)
protected
OnmsDetachedCriteria(org.hibernate.impl.CriteriaImpl impl, org.hibernate.Criteria criteria)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsCriteria.OnmsDetachedCriteria
createAlias(String associationPath, String alias, int joinType)
OnmsCriteria.OnmsDetachedCriteria
createCriteria(String associationPath)
OnmsCriteria.OnmsDetachedCriteria
createCriteria(String associationPath, int joinType)
OnmsCriteria.OnmsDetachedCriteria
createCriteria(String associationPath, String alias)
OnmsCriteria.OnmsDetachedCriteria
createCriteria(String associationPath, String alias, int joinType)
static OnmsCriteria.OnmsDetachedCriteria
forClass(Class clazz)
static OnmsCriteria.OnmsDetachedCriteria
forClass(Class clazz, String alias)
static OnmsCriteria.OnmsDetachedCriteria
forEntityName(String entityName)
static OnmsCriteria.OnmsDetachedCriteria
forEntityName(String entityName, String alias)
-
-
-
Constructor Detail
-
OnmsDetachedCriteria
protected OnmsDetachedCriteria(String entityName)
-
OnmsDetachedCriteria
protected OnmsDetachedCriteria(org.hibernate.impl.CriteriaImpl impl)
-
OnmsDetachedCriteria
protected OnmsDetachedCriteria(org.hibernate.impl.CriteriaImpl impl, org.hibernate.Criteria criteria)
-
-
Method Detail
-
forEntityName
public static OnmsCriteria.OnmsDetachedCriteria forEntityName(String entityName)
-
forEntityName
public static OnmsCriteria.OnmsDetachedCriteria forEntityName(String entityName, String alias)
-
forClass
public static OnmsCriteria.OnmsDetachedCriteria forClass(Class clazz)
-
forClass
public static OnmsCriteria.OnmsDetachedCriteria forClass(Class clazz, String alias)
-
createAlias
public OnmsCriteria.OnmsDetachedCriteria createAlias(String associationPath, String alias, int joinType)
- Overrides:
createAlias
in classorg.hibernate.criterion.DetachedCriteria
-
createCriteria
public OnmsCriteria.OnmsDetachedCriteria createCriteria(String associationPath, int joinType)
- Overrides:
createCriteria
in classorg.hibernate.criterion.DetachedCriteria
-
createCriteria
public OnmsCriteria.OnmsDetachedCriteria createCriteria(String associationPath, String alias)
- Overrides:
createCriteria
in classorg.hibernate.criterion.DetachedCriteria
-
createCriteria
public OnmsCriteria.OnmsDetachedCriteria createCriteria(String associationPath, String alias, int joinType)
- Overrides:
createCriteria
in classorg.hibernate.criterion.DetachedCriteria
-
createCriteria
public OnmsCriteria.OnmsDetachedCriteria createCriteria(String associationPath) throws org.hibernate.HibernateException
- Overrides:
createCriteria
in classorg.hibernate.criterion.DetachedCriteria
- Throws:
org.hibernate.HibernateException
-
-