java.lang.Object | ||
↳ | org.hibernate.impl.AbstractSessionImpl | |
↳ | org.hibernate.impl.StatelessSessionImpl |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.impl.AbstractSessionImpl
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
We cannot rely upon this method being called! It is only
called if we are using Hibernate Transaction API.
| |||||||||||
Begin a Hibernate transaction.
| |||||||||||
Close the stateless session and release the JDBC connection.
| |||||||||||
Returns the current JDBC connection associated with this
instance.
| |||||||||||
Create a new Criteria instance, for the given entity name.
| |||||||||||
Create a new Criteria instance, for the given entity name,
with the given alias.
| |||||||||||
Create a new Criteria instance, for the given entity class,
or a superclass of an entity class.
| |||||||||||
Create a new Criteria instance, for the given entity class,
or a superclass of an entity class, with the given alias.
| |||||||||||
Delete a row.
| |||||||||||
Delete a row.
| |||||||||||
Retrieve a row, obtaining the specified lock mode.
| |||||||||||
Retrieve a row, obtaining the specified lock mode.
| |||||||||||
Retrieve a row.
| |||||||||||
Retrieve a row.
| |||||||||||
Get the current Hibernate transaction.
| |||||||||||
Insert a row.
| |||||||||||
Insert a row.
| |||||||||||
Refresh the entity instance state from the database.
| |||||||||||
Refresh the entity instance state from the database.
| |||||||||||
Refresh the entity instance state from the database.
| |||||||||||
Refresh the entity instance state from the database.
| |||||||||||
Update a row.
| |||||||||||
Update a row.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.impl.AbstractSessionImpl
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.StatelessSession
| |||||||||||
From interface
org.hibernate.engine.SessionImplementor
| |||||||||||
From interface
org.hibernate.jdbc.JDBCContext.Context
| |||||||||||
From interface
org.hibernate.transaction.TransactionFactory.Context
|
We cannot rely upon this method being called! It is only called if we are using Hibernate Transaction API.
Close the stateless session and release the JDBC connection.
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.
Create a new Criteria instance, for the given entity name. Entities returned by the query are detached.
Create a new Criteria instance, for the given entity name, with the given alias. Entities returned by the query are detached.
Create a new Criteria instance, for the given entity class, or a superclass of an entity class. Entities returned by the query are detached.
persistentClass | a class, which is persistent, or has persistent subclasses |
---|
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.
persistentClass | a class, which is persistent, or has persistent subclasses |
---|
Delete a row.
entityName | The entityName for the entity to be deleted |
---|---|
entity | a detached entity instance |
HibernateException |
---|
Retrieve a row, obtaining the specified lock mode.
Retrieve a row, obtaining the specified lock mode.
Retrieve a row.
Retrieve a row.
HibernateException |
---|
Get the current Hibernate transaction.
HibernateException |
---|
HibernateException |
---|
Insert a row.
entityName | The entityName for the entity to be inserted |
---|---|
entity | a new transient instance |
HibernateException |
---|
HibernateException |
---|
HibernateException |
---|
HibernateException |
---|
Refresh the entity instance state from the database.
entityName | The entityName for the entity to be refreshed. |
---|---|
entity | The entity to be refreshed. |
Refresh the entity instance state from the database.
entityName | The entityName for the entity to be refreshed. |
---|---|
entity | The entity to be refreshed. |
lockMode | The LockMode to be applied. |
Refresh the entity instance state from the database.
entity | The entity to be refreshed. |
---|---|
lockMode | The LockMode to be applied. |
Refresh the entity instance state from the database.
entity | The entity to be refreshed. |
---|
HibernateException |
---|
HibernateException |
---|
Update a row.
entityName | The entityName for the entity to be updated |
---|---|
entity | a detached entity instance |