1 package org.hibernate; 3 4 import java.util.List ; 5 6 import org.hibernate.criterion.CriteriaSpecification; 7 import org.hibernate.criterion.Criterion; 8 import org.hibernate.criterion.Order; 9 import org.hibernate.criterion.Projection; 10 import org.hibernate.transform.ResultTransformer; 11 12 67 public interface Criteria extends CriteriaSpecification { 68 69 76 public Criteria add(Criterion criterion); 77 78 84 public Criteria addOrder(Order order); 85 86 95 public Criteria setFetchMode(String associationPath, FetchMode mode) throws HibernateException; 96 99 public Criteria createAlias(String associationPath, String alias) throws HibernateException; 100 101 104 public Criteria createCriteria(String associationPath) throws HibernateException; 105 106 110 public Criteria createCriteria(String associationPath, String alias) throws HibernateException; 111 112 116 public Criteria setProjection(Projection projection); 117 118 121 public String getAlias(); 122 123 131 public Criteria setResultTransformer(ResultTransformer resultTransformer); 132 133 140 public Criteria setMaxResults(int maxResults); 141 142 148 public Criteria setFirstResult(int firstResult); 149 150 154 public Criteria setFetchSize(int fetchSize); 155 156 162 public Criteria setTimeout(int timeout); 163 164 167 public Criteria setCacheable(boolean cacheable); 168 169 175 public Criteria setCacheRegion(String cacheRegion); 176 177 183 public List list() throws HibernateException; 184 185 191 public ScrollableResults scroll() throws HibernateException; 192 193 199 public ScrollableResults scroll(ScrollMode scrollMode) throws HibernateException; 200 201 208 public Object uniqueResult() throws HibernateException; 209 210 214 public Criteria setLockMode(LockMode lockMode); 215 220 public Criteria setLockMode(String alias, LockMode lockMode); 221 222 226 public Criteria setComment(String comment); 227 228 231 public Criteria setFlushMode(FlushMode flushMode); 232 233 236 public Criteria setCacheMode(CacheMode cacheMode); 237 238 } | Popular Tags |