Class 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
    • Field Detail

      • INNER_JOIN

        public static final int INNER_JOIN
        Deprecated.
        Constant INNER_JOIN=Criteria.INNER_JOIN
        See Also:
        Constant Field Values
      • LEFT_JOIN

        public static final int LEFT_JOIN
        Deprecated.
        Constant LEFT_JOIN=Criteria.LEFT_JOIN
        See Also:
        Constant Field Values
    • Constructor Detail

      • OnmsCriteria

        public OnmsCriteria​(String entityName)
        Deprecated.

        Constructor for OnmsCriteria.

        Parameters:
        entityName - a String object.
      • OnmsCriteria

        public OnmsCriteria​(String entityName,
                            String alias)
        Deprecated.

        Constructor for OnmsCriteria.

        Parameters:
        entityName - a String object.
        alias - a String object.
      • OnmsCriteria

        public OnmsCriteria​(Class<?> clazz)
        Deprecated.

        Constructor for OnmsCriteria.

        Parameters:
        clazz - a Class object.
      • OnmsCriteria

        public OnmsCriteria​(Class<?> clazz,
                            String alias)
        Deprecated.

        Constructor for OnmsCriteria.

        Parameters:
        clazz - a Class object.
        alias - a String object.
    • Method Detail

      • add

        public OnmsCriteria add​(org.hibernate.criterion.Criterion criterion)
        Deprecated.

        add

        Parameters:
        criterion - a Criterion object.
        Returns:
        a OnmsCriteria object.
      • addOrder

        public OnmsCriteria addOrder​(org.hibernate.criterion.Order order)
        Deprecated.

        addOrder

        Parameters:
        order - a Order object.
        Returns:
        a OnmsCriteria object.
      • createAlias

        public OnmsCriteria createAlias​(String associationPath,
                                        String alias)
                                 throws org.hibernate.HibernateException
        Deprecated.

        createAlias

        Parameters:
        associationPath - a String object.
        alias - a String 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 - a String object.
        alias - a String object.
        joinType - a int.
        Returns:
        a OnmsCriteria object.
      • createCriteria

        public OnmsCriteria createCriteria​(String associationPath)
        Deprecated.

        createCriteria

        Parameters:
        associationPath - a String object.
        Returns:
        a OnmsCriteria object.
      • createCriteria

        public OnmsCriteria createCriteria​(String associationPath,
                                           int joinType)
        Deprecated.

        createCriteria

        Parameters:
        associationPath - a String object.
        joinType - a int.
        Returns:
        a OnmsCriteria object.
      • getAlias

        public String getAlias()
        Deprecated.

        getAlias

        Returns:
        a String object.
      • setFetchMode

        public OnmsCriteria setFetchMode​(String associationPath,
                                         org.hibernate.FetchMode mode)
                                  throws org.hibernate.HibernateException
        Deprecated.

        setFetchMode

        Parameters:
        associationPath - a String object.
        mode - a FetchMode object.
        Returns:
        a OnmsCriteria object.
        Throws:
        org.hibernate.HibernateException - if any.
      • setProjection

        public OnmsCriteria setProjection​(org.hibernate.criterion.Projection projection)
        Deprecated.

        setProjection

        Parameters:
        projection - a Projection object.
        Returns:
        a OnmsCriteria object.
      • setResultTransformer

        public OnmsCriteria setResultTransformer​(org.hibernate.transform.ResultTransformer resultTransformer)
        Deprecated.

        setResultTransformer

        Parameters:
        resultTransformer - a ResultTransformer object.
        Returns:
        a OnmsCriteria object.
      • resultsOfType

        public boolean resultsOfType​(Class<?> clazz)
        Deprecated.

        resultsOfType

        Parameters:
        clazz - a Class object.
        Returns:
        a boolean.
      • getFirstResult

        public Integer getFirstResult()
        Deprecated.

        getFirstResult

        Returns:
        a Integer object.
      • setFirstResult

        public void setFirstResult​(Integer offset)
        Deprecated.

        setFirstResult

        Parameters:
        offset - a Integer object.
      • getMaxResults

        public Integer getMaxResults()
        Deprecated.

        getMaxResults

        Returns:
        a Integer object.
      • setMaxResults

        public void setMaxResults​(Integer limit)
        Deprecated.

        setMaxResults

        Parameters:
        limit - a Integer 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.