Java Doc for SessionImplementor.java in  » Database-ORM » hibernate » org » hibernate » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » hibernate » org.hibernate.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hibernate.engine.SessionImplementor

All known Subclasses:   org.hibernate.impl.AbstractSessionImpl,
SessionImplementor
public interface SessionImplementor extends Serializable(Code)
Defines the internal contract between the Session and other parts of Hibernate such as implementors of Type or EntityPersister.
See Also:   org.hibernate.Session
See Also:    the interface to the application
See Also:   org.hibernate.impl.SessionImpl
See Also:    the actual implementation
author:
   Gavin King




Method Summary
public  voidafterScrollOperation()
    
public  voidafterTransactionCompletion(boolean successful, Transaction tx)
     Notify the session that the transaction completed, so we no longer own the old locks.
public  voidbeforeTransactionCompletion(Transaction tx)
    
public  StringbestGuessEntityName(Object object)
    
public  Connectionconnection()
    
 intexecuteNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters)
    
 intexecuteUpdate(String query, QueryParameters queryParameters)
    
public  voidflush()
    
public  BatchergetBatcher()
    
public  CacheModegetCacheMode()
    
public  SerializablegetContextEntityIdentifier(Object object)
    
public  intgetDontFlushFromFind()
    
public  MapgetEnabledFilters()
     Return the currently enabled filters.
public  EntityModegetEntityMode()
    
public  EntityPersistergetEntityPersister(String entityName, Object object)
    
public  ObjectgetEntityUsingInterceptor(EntityKey key)
    
public  SessionFactoryImplementorgetFactory()
    
public  StringgetFetchProfile()
    
public  TypegetFilterParameterType(String filterParameterName)
     Retreive the type for a given filter parrameter.
public  ObjectgetFilterParameterValue(String filterParameterName)
     Retreive the currently set value for a filter parameter.
Parameters:
  filterParameterName - The filter parameter name in the format{FILTER_NAME.PARAMETER_NAME}.
public  FlushModegetFlushMode()
    
public  InterceptorgetInterceptor()
     Retrieves the interceptor currently in use by this event source.
public  JDBCContextgetJDBCContext()
    
public  EventListenersgetListeners()
     Retrieves the configured event listeners from this event source.
public  QuerygetNamedQuery(String name)
    
public  QuerygetNamedSQLQuery(String name)
    
public  PersistenceContextgetPersistenceContext()
    
public  longgetTimestamp()
    
public  StringguessEntityName(Object entity)
    
public  ObjectimmediateLoad(String entityName, Serializable id)
     Load an instance immediately.
public  voidinitializeCollection(PersistentCollection collection, boolean writing)
    
public  Objectinstantiate(String entityName, Serializable id)
    
public  ObjectinternalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
     Load an instance without checking if it was deleted.
public  booleanisClosed()
     Determine whether the session is closed.
public  booleanisConnected()
    
public  booleanisEventSource()
    
public  booleanisOpen()
    
public  booleanisTransactionInProgress()
    
public  Iteratoriterate(String query, QueryParameters queryParameters)
    
public  IteratoriterateFilter(Object collection, String filter, QueryParameters queryParameters)
    
public  Listlist(String query, QueryParameters queryParameters)
    
public  Listlist(CriteriaImpl criteria)
    
public  Listlist(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
     Execute a native SQL query, and return the results as a fully built list.
Parameters:
  spec - The specification of the native SQL query to execute.
Parameters:
  queryParameters - The parameters by which to perform the execution.
public  ListlistCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
    
public  ListlistFilter(Object collection, String filter, QueryParameters queryParameters)
    
public  ScrollableResultsscroll(String query, QueryParameters queryParameters)
    
public  ScrollableResultsscroll(CriteriaImpl criteria, ScrollMode scrollMode)
    
public  ScrollableResultsscroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
     Execute a native SQL query, and return the results as a scrollable result.
Parameters:
  spec - The specification of the native SQL query to execute.
Parameters:
  queryParameters - The parameters by which to perform the execution.
public  ScrollableResultsscrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
    
public  voidsetAutoClear(boolean enabled)
    
public  voidsetCacheMode(CacheMode cm)
    
public  voidsetFetchProfile(String name)
    
public  voidsetFlushMode(FlushMode fm)
    



Method Detail
afterScrollOperation
public void afterScrollOperation()(Code)



afterTransactionCompletion
public void afterTransactionCompletion(boolean successful, Transaction tx)(Code)
Notify the session that the transaction completed, so we no longer own the old locks. (Also we should release cache softlocks.) May be called multiple times during the transaction completion process. Also called after an autocommit, in which case the second argument is null.



beforeTransactionCompletion
public void beforeTransactionCompletion(Transaction tx)(Code)
Notify the session that the transaction is about to complete



bestGuessEntityName
public String bestGuessEntityName(Object object)(Code)
The best guess entity name for an entity not in an association



connection
public Connection connection()(Code)



executeNativeUpdate
int executeNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters) throws HibernateException(Code)
Execute a native SQL update or delete query



executeUpdate
int executeUpdate(String query, QueryParameters queryParameters) throws HibernateException(Code)
Execute a HQL update or delete query



flush
public void flush()(Code)



getBatcher
public Batcher getBatcher()(Code)
Get the prepared statement Batcher for this session



getCacheMode
public CacheMode getCacheMode()(Code)



getContextEntityIdentifier
public Serializable getContextEntityIdentifier(Object object)(Code)
Return the identifier of the persistent object, or null if not associated with the session



getDontFlushFromFind
public int getDontFlushFromFind()(Code)



getEnabledFilters
public Map getEnabledFilters()(Code)
Return the currently enabled filters. The filter map is keyed by filter name, with values corresponding to the org.hibernate.impl.FilterImpl instance. The currently enabled filters.



getEntityMode
public EntityMode getEntityMode()(Code)



getEntityPersister
public EntityPersister getEntityPersister(String entityName, Object object) throws HibernateException(Code)
Get the EntityPersister for any instance
Parameters:
  entityName - optional entity name
Parameters:
  object - the entity instance



getEntityUsingInterceptor
public Object getEntityUsingInterceptor(EntityKey key) throws HibernateException(Code)
Get the entity instance associated with the given Key, calling the Interceptor if necessary



getFactory
public SessionFactoryImplementor getFactory()(Code)
Get the creating SessionFactoryImplementor



getFetchProfile
public String getFetchProfile()(Code)



getFilterParameterType
public Type getFilterParameterType(String filterParameterName)(Code)
Retreive the type for a given filter parrameter.
Parameters:
  filterParameterName - The filter parameter name in the format{FILTER_NAME.PARAMETER_NAME}.



getFilterParameterValue
public Object getFilterParameterValue(String filterParameterName)(Code)
Retreive the currently set value for a filter parameter.
Parameters:
  filterParameterName - The filter parameter name in the format{FILTER_NAME.PARAMETER_NAME}. The filter parameter value.



getFlushMode
public FlushMode getFlushMode()(Code)



getInterceptor
public Interceptor getInterceptor()(Code)
Retrieves the interceptor currently in use by this event source. The interceptor.



getJDBCContext
public JDBCContext getJDBCContext()(Code)



getListeners
public EventListeners getListeners()(Code)
Retrieves the configured event listeners from this event source. The configured event listeners.



getNamedQuery
public Query getNamedQuery(String name)(Code)
Get a Query instance for a named query or named native SQL query



getNamedSQLQuery
public Query getNamedSQLQuery(String name)(Code)
Get a Query instance for a named native SQL query



getPersistenceContext
public PersistenceContext getPersistenceContext()(Code)
Get the persistence context for this session



getTimestamp
public long getTimestamp()(Code)
System time before the start of the transaction



guessEntityName
public String guessEntityName(Object entity) throws HibernateException(Code)
The guessed entity name for an entity not in an association



immediateLoad
public Object immediateLoad(String entityName, Serializable id) throws HibernateException(Code)
Load an instance immediately. This method is only called when lazily initializing a proxy. Do not return the proxy.



initializeCollection
public void initializeCollection(PersistentCollection collection, boolean writing) throws HibernateException(Code)
Initialize the collection (if not already initialized)



instantiate
public Object instantiate(String entityName, Serializable id) throws HibernateException(Code)
Instantiate the entity class, initializing with the given identifier



internalLoad
public Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable) throws HibernateException(Code)
Load an instance without checking if it was deleted. When nullable is disabled this method may create a new proxy or return an existing proxy; if it does not exist, throw an exception. When nullable is enabled, the method does not create new proxies (but might return an existing proxy); if it does not exist, return null. When eager is enabled, the object is eagerly fetched



isClosed
public boolean isClosed()(Code)
Determine whether the session is closed. Provided seperately from SessionImplementor.isOpen() as this method does not attempt any JTA synch registration, where as SessionImplementor.isOpen() does; which makes this one nicer to use for most internal purposes. True if the session is closed; false otherwise.



isConnected
public boolean isConnected()(Code)



isEventSource
public boolean isEventSource()(Code)



isOpen
public boolean isOpen()(Code)



isTransactionInProgress
public boolean isTransactionInProgress()(Code)
Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?



iterate
public Iterator iterate(String query, QueryParameters queryParameters) throws HibernateException(Code)
Execute an iterate() query



iterateFilter
public Iterator iterateFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException(Code)
Iterate a filter



list
public List list(String query, QueryParameters queryParameters) throws HibernateException(Code)
Execute a find() query



list
public List list(CriteriaImpl criteria)(Code)
Execute a criteria query



list
public List list(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException(Code)
Execute a native SQL query, and return the results as a fully built list.
Parameters:
  spec - The specification of the native SQL query to execute.
Parameters:
  queryParameters - The parameters by which to perform the execution. The result list.
throws:
  HibernateException -



listCustomQuery
public List listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) throws HibernateException(Code)
Execute an SQL Query



listFilter
public List listFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException(Code)
Execute a filter



scroll
public ScrollableResults scroll(String query, QueryParameters queryParameters) throws HibernateException(Code)
Execute a scroll() query



scroll
public ScrollableResults scroll(CriteriaImpl criteria, ScrollMode scrollMode)(Code)
Execute a criteria query



scroll
public ScrollableResults scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException(Code)
Execute a native SQL query, and return the results as a scrollable result.
Parameters:
  spec - The specification of the native SQL query to execute.
Parameters:
  queryParameters - The parameters by which to perform the execution. The resulting scrollable result.
throws:
  HibernateException -



scrollCustomQuery
public ScrollableResults scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) throws HibernateException(Code)
Execute an SQL Query



setAutoClear
public void setAutoClear(boolean enabled)(Code)
Enable/disable automatic cache clearing from after transaction completion (for EJB3)



setCacheMode
public void setCacheMode(CacheMode cm)(Code)



setFetchProfile
public void setFetchProfile(String name)(Code)



setFlushMode
public void setFlushMode(FlushMode fm)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.