Java Doc for StatelessSession.java in  » Database-ORM » hibernate » org » hibernate » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hibernate.StatelessSession

All known Subclasses:   org.hibernate.impl.StatelessSessionImpl,
StatelessSession
public interface StatelessSession extends Serializable(Code)
A command-oriented API for performing bulk operations against a database.

A stateless session does not implement a first-level cache nor interact with any second-level cache, nor does it implement transactional write-behind or automatic dirty checking, nor do operations cascade to associated instances. Collections are ignored by a stateless session. Operations performed via a stateless session bypass Hibernate's event model and interceptors. Stateless sessions are vulnerable to data aliasing effects, due to the lack of a first-level cache.

For certain kinds of transactions, a stateless session may perform slightly faster than a stateful session.
author:
   Gavin King




Method Summary
public  TransactionbeginTransaction()
     Begin a Hibernate transaction.
public  voidclose()
     Close the stateless session and release the JDBC connection.
public  Connectionconnection()
     Returns the current JDBC connection associated with this instance.

If the session is using aggressive connection release (as in a CMT environment), it is the application's responsibility to close the connection returned by this call.
public  CriteriacreateCriteria(Class persistentClass)
     Create a new Criteria instance, for the given entity class, or a superclass of an entity class.
public  CriteriacreateCriteria(Class persistentClass, String alias)
     Create a new Criteria instance, for the given entity class, or a superclass of an entity class, with the given alias.
public  CriteriacreateCriteria(String entityName)
     Create a new Criteria instance, for the given entity name.
public  CriteriacreateCriteria(String entityName, String alias)
     Create a new Criteria instance, for the given entity name, with the given alias.
public  QuerycreateQuery(String queryString)
     Create a new instance of Query for the given HQL query string.
public  SQLQuerycreateSQLQuery(String queryString)
     Create a new instance of SQLQuery for the given SQL query string.
public  voiddelete(Object entity)
     Delete a row.
public  voiddelete(String entityName, Object entity)
     Delete a row.
public  Objectget(String entityName, Serializable id)
     Retrieve a row.
public  Objectget(Class entityClass, Serializable id)
     Retrieve a row.
public  Objectget(String entityName, Serializable id, LockMode lockMode)
     Retrieve a row, obtaining the specified lock mode.
public  Objectget(Class entityClass, Serializable id, LockMode lockMode)
     Retrieve a row, obtaining the specified lock mode.
public  QuerygetNamedQuery(String queryName)
     Obtain an instance of Query for a named query string defined in the mapping file.
public  TransactiongetTransaction()
     Get the current Hibernate transaction.
public  Serializableinsert(Object entity)
     Insert a row.
public  Serializableinsert(String entityName, Object entity)
     Insert a row.
public  voidrefresh(Object entity)
     Refresh the entity instance state from the database.
public  voidrefresh(String entityName, Object entity)
     Refresh the entity instance state from the database.
public  voidrefresh(Object entity, LockMode lockMode)
     Refresh the entity instance state from the database.
public  voidrefresh(String entityName, Object entity, LockMode lockMode)
     Refresh the entity instance state from the database.
public  voidupdate(Object entity)
     Update a row.
public  voidupdate(String entityName, Object entity)
     Update a row.



Method Detail
beginTransaction
public Transaction beginTransaction()(Code)
Begin a Hibernate transaction.



close
public void close()(Code)
Close the stateless session and release the JDBC connection.



connection
public Connection connection()(Code)
Returns the current JDBC connection associated with this instance.

If the session is using aggressive connection release (as in a CMT environment), it is the application's responsibility to close the connection returned by this call. Otherwise, the application should not close the connection.



createCriteria
public Criteria createCriteria(Class persistentClass)(Code)
Create a new Criteria instance, for the given entity class, or a superclass of an entity class. Entities returned by the query are detached.
Parameters:
  persistentClass - a class, which is persistent, or has persistent subclasses Criteria



createCriteria
public Criteria createCriteria(Class persistentClass, String alias)(Code)
Create a new Criteria instance, for the given entity class, or a superclass of an entity class, with the given alias. Entities returned by the query are detached.
Parameters:
  persistentClass - a class, which is persistent, or has persistent subclasses Criteria



createCriteria
public Criteria createCriteria(String entityName)(Code)
Create a new Criteria instance, for the given entity name. Entities returned by the query are detached.
Parameters:
  entityName - Criteria



createCriteria
public Criteria createCriteria(String entityName, String alias)(Code)
Create a new Criteria instance, for the given entity name, with the given alias. Entities returned by the query are detached.
Parameters:
  entityName - Criteria



createQuery
public Query createQuery(String queryString)(Code)
Create a new instance of Query for the given HQL query string. Entities returned by the query are detached.



createSQLQuery
public SQLQuery createSQLQuery(String queryString) throws HibernateException(Code)
Create a new instance of SQLQuery for the given SQL query string. Entities returned by the query are detached.
Parameters:
  queryString - a SQL query SQLQuery
throws:
  HibernateException -



delete
public void delete(Object entity)(Code)
Delete a row.
Parameters:
  entity - a detached entity instance



delete
public void delete(String entityName, Object entity)(Code)
Delete a row.
Parameters:
  entityName - The entityName for the entity to be deleted
Parameters:
  entity - a detached entity instance



get
public Object get(String entityName, Serializable id)(Code)
Retrieve a row. a detached entity instance



get
public Object get(Class entityClass, Serializable id)(Code)
Retrieve a row. a detached entity instance



get
public Object get(String entityName, Serializable id, LockMode lockMode)(Code)
Retrieve a row, obtaining the specified lock mode. a detached entity instance



get
public Object get(Class entityClass, Serializable id, LockMode lockMode)(Code)
Retrieve a row, obtaining the specified lock mode. a detached entity instance



getNamedQuery
public Query getNamedQuery(String queryName)(Code)
Obtain an instance of Query for a named query string defined in the mapping file. Entities returned by the query are detached.



getTransaction
public Transaction getTransaction()(Code)
Get the current Hibernate transaction.



insert
public Serializable insert(Object entity)(Code)
Insert a row.
Parameters:
  entity - a new transient instance



insert
public Serializable insert(String entityName, Object entity)(Code)
Insert a row.
Parameters:
  entityName - The entityName for the entity to be inserted
Parameters:
  entity - a new transient instance the identifier of the instance



refresh
public void refresh(Object entity)(Code)
Refresh the entity instance state from the database.
Parameters:
  entity - The entity to be refreshed.



refresh
public void refresh(String entityName, Object entity)(Code)
Refresh the entity instance state from the database.
Parameters:
  entityName - The entityName for the entity to be refreshed.
Parameters:
  entity - The entity to be refreshed.



refresh
public void refresh(Object entity, LockMode lockMode)(Code)
Refresh the entity instance state from the database.
Parameters:
  entity - The entity to be refreshed.
Parameters:
  lockMode - The LockMode to be applied.



refresh
public void refresh(String entityName, Object entity, LockMode lockMode)(Code)
Refresh the entity instance state from the database.
Parameters:
  entityName - The entityName for the entity to be refreshed.
Parameters:
  entity - The entity to be refreshed.
Parameters:
  lockMode - The LockMode to be applied.



update
public void update(Object entity)(Code)
Update a row.
Parameters:
  entity - a detached entity instance



update
public void update(String entityName, Object entity)(Code)
Update a row.
Parameters:
  entityName - The entityName for the entity to be updated
Parameters:
  entity - a detached entity instance



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