1 package org.hibernate.engine; 3 4 import java.io.Serializable ; 5 import java.sql.Connection ; 6 import java.util.Iterator ; 7 import java.util.List ; 8 import java.util.Map ; 9 10 import org.hibernate.CacheMode; 11 import org.hibernate.EntityMode; 12 import org.hibernate.FlushMode; 13 import org.hibernate.HibernateException; 14 import org.hibernate.Interceptor; 15 import org.hibernate.Query; 16 import org.hibernate.ScrollMode; 17 import org.hibernate.ScrollableResults; 18 import org.hibernate.Transaction; 19 import org.hibernate.collection.PersistentCollection; 20 import org.hibernate.event.SessionEventListenerConfig; 21 import org.hibernate.impl.CriteriaImpl; 22 import org.hibernate.jdbc.Batcher; 23 import org.hibernate.loader.custom.CustomQuery; 24 import org.hibernate.persister.entity.EntityPersister; 25 import org.hibernate.type.Type; 26 27 28 36 public interface SessionImplementor extends Serializable { 37 38 43 public Interceptor getInterceptor(); 44 45 49 public void setAutoClear(boolean enabled); 50 51 55 public boolean isTransactionInProgress(); 56 57 60 public void initializeCollection(PersistentCollection collection, boolean writing) 61 throws HibernateException; 62 63 75 public Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable) 76 throws HibernateException; 77 78 82 public Object immediateLoad(String entityName, Serializable id) throws HibernateException; 83 84 87 public long getTimestamp(); 88 91 public SessionFactoryImplementor getFactory(); 92 95 public Batcher getBatcher(); 96 97 100 public List list(String query, QueryParameters queryParameters) throws HibernateException; 101 104 public Iterator iterate(String query, QueryParameters queryParameters) throws HibernateException; 105 108 public ScrollableResults scroll(String query, QueryParameters queryParameters) throws HibernateException; 109 112 public ScrollableResults scroll(CriteriaImpl criteria, ScrollMode scrollMode); 113 116 public List list(CriteriaImpl criteria); 117 118 121 public List listFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException; 122 125 public Iterator iterateFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException; 126 127 132 public EntityPersister getEntityPersister(String entityName, Object object) throws HibernateException; 133 134 138 public Object getEntityUsingInterceptor(EntityKey key) throws HibernateException; 139 140 147 public void afterTransactionCompletion(boolean successful, Transaction tx); 148 149 152 public void beforeTransactionCompletion(Transaction tx); 153 154 158 public Serializable getContextEntityIdentifier(Object object); 159 160 163 public String bestGuessEntityName(Object object); 164 165 168 public String guessEntityName(Object entity) throws HibernateException; 169 170 173 public Object instantiate(String entityName, Serializable id) throws HibernateException; 174 175 178 public List listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) 179 throws HibernateException; 180 181 184 public ScrollableResults scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) 185 throws HibernateException; 186 187 194 public Object getFilterParameterValue(String filterParameterName); 195 196 203 public Type getFilterParameterType(String filterParameterName); 204 205 211 public Map getEnabledFilters(); 212 213 public int getDontFlushFromFind(); 214 215 220 public SessionEventListenerConfig getListeners(); 221 222 224 227 public PersistenceContext getPersistenceContext(); 228 229 232 int executeUpdate(String query, QueryParameters queryParameters) throws HibernateException; 233 234 236 public EntityMode getEntityMode(); 237 public CacheMode getCacheMode(); 238 public void setCacheMode(CacheMode cm); 239 public boolean isOpen(); 240 public boolean isConnected(); 241 public FlushMode getFlushMode(); 242 public void setFlushMode(FlushMode fm); 243 public Connection connection(); 244 245 248 public Query getNamedQuery(String name); 249 252 public Query getNamedSQLQuery(String name); 253 254 public boolean isEventSource(); 255 256 public void afterScrollOperation(); 257 } 258 | Popular Tags |