Package org.opennms.netmgt.model
Class OnmsCriteria
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsCriteria
-
- All Implemented Interfaces:
Serializable
public class OnmsCriteria extends Object implements Serializable
Deprecated.Use the new org.opennms.core.criteria.Criteria objects instead since it is not tightly coupled to Hibernate ORM.OnmsCriteria class.
- Author:
- ranger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OnmsCriteria.OnmsDetachedCriteria
Deprecated.This is a subclass of Hibernate's DetachedCriteria, providing a few more of the Criteria methods than are available in DetachedCriteria.
-
Field Summary
Fields Modifier and Type Field Description static int
INNER_JOIN
Deprecated.ConstantINNER_JOIN=Criteria.INNER_JOIN
static int
LEFT_JOIN
Deprecated.ConstantLEFT_JOIN=Criteria.LEFT_JOIN
-
Constructor Summary
Constructors Modifier Constructor Description OnmsCriteria(Class<?> clazz)
Deprecated.Constructor for OnmsCriteria.OnmsCriteria(Class<?> clazz, String alias)
Deprecated.Constructor for OnmsCriteria.OnmsCriteria(String entityName)
Deprecated.Constructor for OnmsCriteria.OnmsCriteria(String entityName, String alias)
Deprecated.Constructor for OnmsCriteria.protected
OnmsCriteria(String entityName, OnmsCriteria.OnmsDetachedCriteria criteria)
Deprecated.Constructor for OnmsCriteria.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OnmsCriteria
add(org.hibernate.criterion.Criterion criterion)
Deprecated.addOnmsCriteria
addOrder(org.hibernate.criterion.Order order)
Deprecated.addOrderOnmsCriteria
createAlias(String associationPath, String alias)
Deprecated.createAliasOnmsCriteria
createAlias(String associationPath, String alias, int joinType)
Deprecated.createAliasOnmsCriteria
createCriteria(String associationPath)
Deprecated.createCriteriaOnmsCriteria
createCriteria(String associationPath, int joinType)
Deprecated.createCriteriaOnmsCriteria
createCriteria(String associationPath, String alias)
Deprecated.createCriteriaOnmsCriteria
doClone()
Deprecated.This function can be used to copy an OnmsCriteria object so that additional Criterion objects can be added to it without altering the original.String
getAlias()
Deprecated.getAliasOnmsCriteria.OnmsDetachedCriteria
getDetachedCriteria()
Deprecated.getDetachedCriteriaInteger
getFirstResult()
Deprecated.getFirstResultInteger
getMaxResults()
Deprecated.getMaxResultsboolean
resultsOfType(Class<?> clazz)
Deprecated.resultsOfTypeOnmsCriteria
setFetchMode(String associationPath, org.hibernate.FetchMode mode)
Deprecated.setFetchModevoid
setFirstResult(Integer offset)
Deprecated.setFirstResultvoid
setMaxResults(Integer limit)
Deprecated.setMaxResultsOnmsCriteria
setProjection(org.hibernate.criterion.Projection projection)
Deprecated.setProjectionOnmsCriteria
setResultTransformer(org.hibernate.transform.ResultTransformer resultTransformer)
Deprecated.setResultTransformerString
toString()
Deprecated.
-
-
-
Field Detail
-
INNER_JOIN
public static final int INNER_JOIN
Deprecated.ConstantINNER_JOIN=Criteria.INNER_JOIN
- See Also:
- Constant Field Values
-
LEFT_JOIN
public static final int LEFT_JOIN
Deprecated.ConstantLEFT_JOIN=Criteria.LEFT_JOIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OnmsCriteria
public OnmsCriteria(String entityName)
Deprecated.Constructor for OnmsCriteria.
- Parameters:
entityName
- aString
object.
-
OnmsCriteria
public OnmsCriteria(String entityName, String alias)
Deprecated.Constructor for OnmsCriteria.
-
OnmsCriteria
public OnmsCriteria(Class<?> clazz)
Deprecated.Constructor for OnmsCriteria.
- Parameters:
clazz
- aClass
object.
-
OnmsCriteria
public OnmsCriteria(Class<?> clazz, String alias)
Deprecated.Constructor for OnmsCriteria.
-
OnmsCriteria
protected OnmsCriteria(String entityName, OnmsCriteria.OnmsDetachedCriteria criteria)
Deprecated.Constructor for OnmsCriteria.
- Parameters:
entityName
- aString
object.criteria
- aOnmsCriteria.OnmsDetachedCriteria
object.
-
-
Method Detail
-
add
public OnmsCriteria add(org.hibernate.criterion.Criterion criterion)
Deprecated.add
- Parameters:
criterion
- aCriterion
object.- Returns:
- a
OnmsCriteria
object.
-
addOrder
public OnmsCriteria addOrder(org.hibernate.criterion.Order order)
Deprecated.addOrder
- Parameters:
order
- aOrder
object.- Returns:
- a
OnmsCriteria
object.
-
createAlias
public OnmsCriteria createAlias(String associationPath, String alias) throws org.hibernate.HibernateException
Deprecated.createAlias
- Parameters:
associationPath
- aString
object.alias
- aString
object.- Returns:
- a
OnmsCriteria
object. - Throws:
org.hibernate.HibernateException
- if any.
-
createAlias
public OnmsCriteria createAlias(String associationPath, String alias, int joinType)
Deprecated.createAlias
- Parameters:
associationPath
- aString
object.alias
- aString
object.joinType
- a int.- Returns:
- a
OnmsCriteria
object.
-
createCriteria
public OnmsCriteria createCriteria(String associationPath, String alias)
Deprecated.createCriteria
- Parameters:
associationPath
- aString
object.alias
- aString
object.- Returns:
- a
OnmsCriteria
object.
-
createCriteria
public OnmsCriteria createCriteria(String associationPath)
Deprecated.createCriteria
- Parameters:
associationPath
- aString
object.- Returns:
- a
OnmsCriteria
object.
-
createCriteria
public OnmsCriteria createCriteria(String associationPath, int joinType)
Deprecated.createCriteria
- Parameters:
associationPath
- aString
object.joinType
- a int.- Returns:
- a
OnmsCriteria
object.
-
setFetchMode
public OnmsCriteria setFetchMode(String associationPath, org.hibernate.FetchMode mode) throws org.hibernate.HibernateException
Deprecated.setFetchMode
- Parameters:
associationPath
- aString
object.mode
- aFetchMode
object.- Returns:
- a
OnmsCriteria
object. - Throws:
org.hibernate.HibernateException
- if any.
-
setProjection
public OnmsCriteria setProjection(org.hibernate.criterion.Projection projection)
Deprecated.setProjection
- Parameters:
projection
- aProjection
object.- Returns:
- a
OnmsCriteria
object.
-
setResultTransformer
public OnmsCriteria setResultTransformer(org.hibernate.transform.ResultTransformer resultTransformer)
Deprecated.setResultTransformer
- Parameters:
resultTransformer
- aResultTransformer
object.- Returns:
- a
OnmsCriteria
object.
-
getDetachedCriteria
public OnmsCriteria.OnmsDetachedCriteria getDetachedCriteria()
Deprecated.getDetachedCriteria
- Returns:
- a
OnmsCriteria.OnmsDetachedCriteria
object.
-
resultsOfType
public boolean resultsOfType(Class<?> clazz)
Deprecated.resultsOfType
- Parameters:
clazz
- aClass
object.- Returns:
- a boolean.
-
getFirstResult
public Integer getFirstResult()
Deprecated.getFirstResult
- Returns:
- a
Integer
object.
-
setFirstResult
public void setFirstResult(Integer offset)
Deprecated.setFirstResult
- Parameters:
offset
- aInteger
object.
-
setMaxResults
public void setMaxResults(Integer limit)
Deprecated.setMaxResults
- Parameters:
limit
- aInteger
object.
-
doClone
public OnmsCriteria doClone()
Deprecated.This function can be used to copy an OnmsCriteria object so that additional Criterion objects can be added to it without altering the original.
-
-