com.jalios.jcms.db
Class FakeCriteria

java.lang.Object
  extended by com.jalios.jcms.db.FakeCriteria
All Implemented Interfaces:
org.hibernate.Criteria, org.hibernate.criterion.CriteriaSpecification

public class FakeCriteria
extends 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
FakeCriteria()
           
 
Method Summary
 org.hibernate.Criteria add(org.hibernate.criterion.Criterion criterion)
           
 org.hibernate.Criteria addOrder(org.hibernate.criterion.Order order)
           
 org.hibernate.Criteria createAlias(String associationPath, String alias)
           
 org.hibernate.Criteria createAlias(String associationPath, String alias, int joinType)
           
 org.hibernate.Criteria createCriteria(String associationPath)
           
 org.hibernate.Criteria createCriteria(String associationPath, int joinType)
           
 org.hibernate.Criteria createCriteria(String associationPath, String alias)
           
 org.hibernate.Criteria createCriteria(String associationPath, String alias, int joinType)
           
 String getAlias()
           
 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(String cacheRegion)
           
 org.hibernate.Criteria setComment(String comment)
           
 org.hibernate.Criteria setFetchMode(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(org.hibernate.LockMode lockMode)
           
 org.hibernate.Criteria setLockMode(String alias, 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)
           
 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 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(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(String alias,
                                          org.hibernate.LockMode lockMode)
Specified by:
setLockMode in interface org.hibernate.Criteria

createAlias

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

createAlias

public org.hibernate.Criteria createAlias(String associationPath,
                                          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(String associationPath)
                                      throws org.hibernate.HibernateException
Specified by:
createCriteria in interface org.hibernate.Criteria
Throws:
org.hibernate.HibernateException

createCriteria

public org.hibernate.Criteria createCriteria(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(String associationPath,
                                             String alias)
                                      throws org.hibernate.HibernateException
Specified by:
createCriteria in interface org.hibernate.Criteria
Throws:
org.hibernate.HibernateException

createCriteria

public org.hibernate.Criteria createCriteria(String associationPath,
                                             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(String cacheRegion)
Specified by:
setCacheRegion in interface org.hibernate.Criteria

setComment

public org.hibernate.Criteria setComment(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 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 Object uniqueResult()
                    throws org.hibernate.HibernateException
Specified by:
uniqueResult in interface org.hibernate.Criteria
Throws:
org.hibernate.HibernateException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.