Class FakeCriteria

  • All Implemented Interfaces:
    org.hibernate.Criteria, org.hibernate.criterion.CriteriaSpecification

    public class FakeCriteria
    extends java.lang.Object
    implements org.hibernate.Criteria
    • Field Summary

      • Fields inherited from interface org.hibernate.criterion.CriteriaSpecification

        ALIAS_TO_ENTITY_MAP, DISTINCT_ROOT_ENTITY, FULL_JOIN, INNER_JOIN, LEFT_JOIN, PROJECTION, ROOT_ALIAS, ROOT_ENTITY
    • Constructor Summary

      Constructors 
      Constructor Description
      FakeCriteria()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hibernate.Criteria add​(org.hibernate.criterion.Criterion criterion)  
      org.hibernate.Criteria addOrder​(org.hibernate.criterion.Order order)  
      org.hibernate.Criteria createAlias​(java.lang.String associationPath, java.lang.String alias)  
      org.hibernate.Criteria createAlias​(java.lang.String associationPath, java.lang.String alias, int joinType)  
      org.hibernate.Criteria createCriteria​(java.lang.String associationPath)  
      org.hibernate.Criteria createCriteria​(java.lang.String associationPath, int joinType)  
      org.hibernate.Criteria createCriteria​(java.lang.String associationPath, java.lang.String alias)  
      org.hibernate.Criteria createCriteria​(java.lang.String associationPath, java.lang.String alias, int joinType)  
      java.lang.String getAlias()  
      java.util.List list()  
      org.hibernate.ScrollableResults scroll()  
      org.hibernate.ScrollableResults scroll​(org.hibernate.ScrollMode scrollMode)  
      org.hibernate.Criteria setCacheable​(boolean cacheable)  
      org.hibernate.Criteria setCacheMode​(org.hibernate.CacheMode cacheMode)  
      org.hibernate.Criteria setCacheRegion​(java.lang.String cacheRegion)  
      org.hibernate.Criteria setComment​(java.lang.String comment)  
      org.hibernate.Criteria setFetchMode​(java.lang.String associationPath, org.hibernate.FetchMode mode)  
      org.hibernate.Criteria setFetchSize​(int fetchSize)  
      org.hibernate.Criteria setFirstResult​(int firstResult)  
      org.hibernate.Criteria setFlushMode​(org.hibernate.FlushMode flushMode)  
      org.hibernate.Criteria setLockMode​(java.lang.String alias, org.hibernate.LockMode lockMode)  
      org.hibernate.Criteria setLockMode​(org.hibernate.LockMode lockMode)  
      org.hibernate.Criteria setMaxResults​(int maxResults)  
      org.hibernate.Criteria setProjection​(org.hibernate.criterion.Projection projection)  
      org.hibernate.Criteria setResultTransformer​(org.hibernate.transform.ResultTransformer resultTransformer)  
      org.hibernate.Criteria setTimeout​(int timeout)  
      java.lang.Object uniqueResult()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FakeCriteria

        public FakeCriteria()
    • Method Detail

      • getAlias

        public java.lang.String getAlias()
        Specified by:
        getAlias in interface org.hibernate.Criteria
      • setProjection

        public org.hibernate.Criteria setProjection​(org.hibernate.criterion.Projection projection)
        Specified by:
        setProjection in interface org.hibernate.Criteria
      • add

        public org.hibernate.Criteria add​(org.hibernate.criterion.Criterion criterion)
        Specified by:
        add in interface org.hibernate.Criteria
      • addOrder

        public org.hibernate.Criteria addOrder​(org.hibernate.criterion.Order order)
        Specified by:
        addOrder in interface org.hibernate.Criteria
      • setFetchMode

        public org.hibernate.Criteria setFetchMode​(java.lang.String associationPath,
                                                   org.hibernate.FetchMode mode)
                                            throws org.hibernate.HibernateException
        Specified by:
        setFetchMode in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • setLockMode

        public org.hibernate.Criteria setLockMode​(org.hibernate.LockMode lockMode)
        Specified by:
        setLockMode in interface org.hibernate.Criteria
      • setLockMode

        public org.hibernate.Criteria setLockMode​(java.lang.String alias,
                                                  org.hibernate.LockMode lockMode)
        Specified by:
        setLockMode in interface org.hibernate.Criteria
      • createAlias

        public org.hibernate.Criteria createAlias​(java.lang.String associationPath,
                                                  java.lang.String alias)
                                           throws org.hibernate.HibernateException
        Specified by:
        createAlias in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • createAlias

        public org.hibernate.Criteria createAlias​(java.lang.String associationPath,
                                                  java.lang.String alias,
                                                  int joinType)
                                           throws org.hibernate.HibernateException
        Specified by:
        createAlias in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • createCriteria

        public org.hibernate.Criteria createCriteria​(java.lang.String associationPath)
                                              throws org.hibernate.HibernateException
        Specified by:
        createCriteria in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • createCriteria

        public org.hibernate.Criteria createCriteria​(java.lang.String associationPath,
                                                     int joinType)
                                              throws org.hibernate.HibernateException
        Specified by:
        createCriteria in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • createCriteria

        public org.hibernate.Criteria createCriteria​(java.lang.String associationPath,
                                                     java.lang.String alias)
                                              throws org.hibernate.HibernateException
        Specified by:
        createCriteria in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • createCriteria

        public org.hibernate.Criteria createCriteria​(java.lang.String associationPath,
                                                     java.lang.String alias,
                                                     int joinType)
                                              throws org.hibernate.HibernateException
        Specified by:
        createCriteria in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • setResultTransformer

        public org.hibernate.Criteria setResultTransformer​(org.hibernate.transform.ResultTransformer resultTransformer)
        Specified by:
        setResultTransformer in interface org.hibernate.Criteria
      • setMaxResults

        public org.hibernate.Criteria setMaxResults​(int maxResults)
        Specified by:
        setMaxResults in interface org.hibernate.Criteria
      • setFirstResult

        public org.hibernate.Criteria setFirstResult​(int firstResult)
        Specified by:
        setFirstResult in interface org.hibernate.Criteria
      • setFetchSize

        public org.hibernate.Criteria setFetchSize​(int fetchSize)
        Specified by:
        setFetchSize in interface org.hibernate.Criteria
      • setTimeout

        public org.hibernate.Criteria setTimeout​(int timeout)
        Specified by:
        setTimeout in interface org.hibernate.Criteria
      • setCacheable

        public org.hibernate.Criteria setCacheable​(boolean cacheable)
        Specified by:
        setCacheable in interface org.hibernate.Criteria
      • setCacheRegion

        public org.hibernate.Criteria setCacheRegion​(java.lang.String cacheRegion)
        Specified by:
        setCacheRegion in interface org.hibernate.Criteria
      • setComment

        public org.hibernate.Criteria setComment​(java.lang.String comment)
        Specified by:
        setComment in interface org.hibernate.Criteria
      • setFlushMode

        public org.hibernate.Criteria setFlushMode​(org.hibernate.FlushMode flushMode)
        Specified by:
        setFlushMode in interface org.hibernate.Criteria
      • setCacheMode

        public org.hibernate.Criteria setCacheMode​(org.hibernate.CacheMode cacheMode)
        Specified by:
        setCacheMode in interface org.hibernate.Criteria
      • list

        public java.util.List list()
                            throws org.hibernate.HibernateException
        Specified by:
        list in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • scroll

        public org.hibernate.ScrollableResults scroll()
                                               throws org.hibernate.HibernateException
        Specified by:
        scroll in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • scroll

        public org.hibernate.ScrollableResults scroll​(org.hibernate.ScrollMode scrollMode)
                                               throws org.hibernate.HibernateException
        Specified by:
        scroll in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException
      • uniqueResult

        public java.lang.Object uniqueResult()
                                      throws org.hibernate.HibernateException
        Specified by:
        uniqueResult in interface org.hibernate.Criteria
        Throws:
        org.hibernate.HibernateException