Example usage for Java org.hibernate StatelessSession fields, constructors, methods, implement or subclass
The text is from its open source code.
Transaction | beginTransaction() Begin a unit of work and return the associated Transaction object. |
void | close() Close the stateless session and release the JDBC connection. |
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. |
Criteria | createCriteria(Class persistentClass) Create Criteria instance for the given class (entity or subclasses/implementors). |
Criteria | createCriteria(Class persistentClass, String alias) Create Criteria instance for the given class (entity or subclasses/implementors), using a specific alias. |
org.hibernate.query.Query | createQuery(String queryString) |
NativeQuery | createSQLQuery(String queryString) |
void | delete(Object entity) Delete a row. |
void | delete(String entityName, Object entity) Delete a row. |
Object | get(String entityName, Serializable id) Retrieve a row. |
Object | get(Class entityClass, Serializable id) Retrieve a row. |
org.hibernate.query.Query | getNamedQuery(String queryName) |
Transaction | getTransaction() Get the Transaction instance associated with this session. |
Serializable | insert(Object entity) Insert a row. |
Serializable | insert(String entityName, Object entity) Insert a row. |
void | update(Object entity) Update a row. |
void | update(String entityName, Object entity) Update a row. |