Methods Summary |
---|
public Transaction | beginTransaction()Begin a Hibernate transaction.
|
public void | close()Close the stateless session and release the JDBC connection.
|
public java.sql.Connection | 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.
|
public Criteria | createCriteria(java.lang.Class persistentClass)Create a new Criteria instance, for the given entity class,
or a superclass of an entity class. Entities returned by the query are
detached.
|
public Criteria | createCriteria(java.lang.Class persistentClass, java.lang.String alias)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.
|
public Criteria | createCriteria(java.lang.String entityName)Create a new Criteria instance, for the given entity name.
Entities returned by the query are detached.
|
public Criteria | createCriteria(java.lang.String entityName, java.lang.String alias)Create a new Criteria instance, for the given entity name,
with the given alias. Entities returned by the query are detached.
|
public Query | createQuery(java.lang.String queryString)Create a new instance of Query for the given HQL query string.
Entities returned by the query are detached.
|
public SQLQuery | createSQLQuery(java.lang.String queryString)Create a new instance of SQLQuery for the given SQL query string.
Entities returned by the query are detached.
|
public void | delete(java.lang.Object entity)Delete a row.
|
public void | delete(java.lang.String entityName, java.lang.Object entity)Delete a row.
|
public java.lang.Object | get(java.lang.String entityName, java.io.Serializable id, LockMode lockMode)Retrieve a row, obtaining the specified lock mode.
|
public java.lang.Object | get(java.lang.Class entityClass, java.io.Serializable id, LockMode lockMode)Retrieve a row, obtaining the specified lock mode.
|
public java.lang.Object | get(java.lang.String entityName, java.io.Serializable id)Retrieve a row.
|
public java.lang.Object | get(java.lang.Class entityClass, java.io.Serializable id)Retrieve a row.
|
public Query | getNamedQuery(java.lang.String queryName)Obtain an instance of Query for a named query string defined in
the mapping file. Entities returned by the query are detached.
|
public Transaction | getTransaction()Get the current Hibernate transaction.
|
public java.io.Serializable | insert(java.lang.Object entity)Insert a row.
|
public java.io.Serializable | insert(java.lang.String entityName, java.lang.Object entity)Insert a row.
|
public void | refresh(java.lang.Object entity)Refresh the entity instance state from the database.
|
public void | refresh(java.lang.String entityName, java.lang.Object entity)Refresh the entity instance state from the database.
|
public void | refresh(java.lang.Object entity, LockMode lockMode)Refresh the entity instance state from the database.
|
public void | refresh(java.lang.String entityName, java.lang.Object entity, LockMode lockMode)Refresh the entity instance state from the database.
|
public void | update(java.lang.Object entity)Update a row.
|
public void | update(java.lang.String entityName, java.lang.Object entity)Update a row.
|