org.hibernate.StatelessSession |
Known Indirect Subclasses |
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.Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
Create a new instance of Query for the given HQL query string.
| |||||||||||
Create a new instance of SQLQuery for the given SQL query string.
| |||||||||||
Delete a row.
| |||||||||||
Delete a row.
| |||||||||||
Retrieve a row, obtaining the specified lock mode.
| |||||||||||
Retrieve a row.
| |||||||||||
Retrieve a row.
| |||||||||||
Retrieve a row, obtaining the specified lock mode.
| |||||||||||
Obtain an instance of Query for a named query string defined in
the mapping file.
| |||||||||||
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.
|
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 |
---|
Create a new instance of Query for the given HQL query string. Entities returned by the query are detached.
Create a new instance of SQLQuery for the given SQL query string. Entities returned by the query are detached.
queryString | a SQL query |
---|
HibernateException |
---|
Delete a row.
entityName | The entityName for the entity to be deleted |
---|---|
entity | a detached entity instance |
Delete a row.
entity | a detached entity instance |
---|
Retrieve a row, obtaining the specified lock mode.
Retrieve a row.
Retrieve a row.
Retrieve a row, obtaining the specified lock mode.
Obtain an instance of Query for a named query string defined in the mapping file. Entities returned by the query are detached.
Insert a row.
entityName | The entityName for the entity to be inserted |
---|---|
entity | a new transient instance |
Insert a row.
entity | a new transient instance |
---|
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. |
---|
Update a row.
entityName | The entityName for the entity to be updated |
---|---|
entity | a detached entity instance |
Update a row.
entity | a detached entity instance |
---|