1 package org.hibernate.classic; 3 4 import java.io.Serializable ; 5 import java.util.Collection ; 6 import java.util.Iterator ; 7 import java.util.List ; 8 9 import org.hibernate.HibernateException; 10 import org.hibernate.Query; 11 import org.hibernate.type.Type; 12 13 20 public interface Session extends org.hibernate.Session { 21 22 34 public Object saveOrUpdateCopy(Object object) throws HibernateException; 35 36 49 public Object saveOrUpdateCopy(Object object, Serializable id) throws HibernateException; 50 51 63 public Object saveOrUpdateCopy(String entityName, Object object) throws HibernateException; 64 65 78 public Object saveOrUpdateCopy(String entityName, Object object, Serializable id) throws HibernateException; 79 80 88 public List find(String query) throws HibernateException; 89 90 103 public List find(String query, Object value, Type type) throws HibernateException; 104 105 118 public List find(String query, Object [] values, Type[] types) throws HibernateException; 119 120 134 public Iterator iterate(String query) throws HibernateException; 135 136 153 public Iterator iterate(String query, Object value, Type type) throws HibernateException; 154 155 172 public Iterator iterate(String query, Object [] values, Type[] types) throws HibernateException; 173 174 186 public Collection filter(Object collection, String filter) throws HibernateException; 187 188 201 public Collection filter(Object collection, String filter, Object value, Type type) throws HibernateException; 202 203 218 public Collection filter(Object collection, String filter, Object [] values, Type[] types) throws HibernateException; 219 220 229 public int delete(String query) throws HibernateException; 230 231 242 public int delete(String query, Object value, Type type) throws HibernateException; 243 244 255 public int delete(String query, Object [] values, Type[] types) throws HibernateException; 256 257 258 266 public Query createSQLQuery(String sql, String returnAlias, Class returnClass); 267 268 276 public Query createSQLQuery(String sql, String [] returnAliases, Class [] returnClasses); 277 278 279 } 280 | Popular Tags |