public interface StatelessSession extends SharedSessionContract, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stateless session and release the JDBC connection.
|
Connection |
connection()
Deprecated.
just missed when deprecating same method from
Session |
void |
delete(Object entity)
Delete a row.
|
void |
delete(String entityName,
Object entity)
Delete a row.
|
Object |
get(Class entityClass,
Serializable id)
Retrieve a row.
|
Object |
get(Class entityClass,
Serializable id,
LockMode lockMode)
Retrieve a row, obtaining the specified lock mode.
|
Object |
get(String entityName,
Serializable id)
Retrieve a row.
|
Object |
get(String entityName,
Serializable id,
LockMode lockMode)
Retrieve a row, obtaining the specified lock mode.
|
Serializable |
insert(Object entity)
Insert a row.
|
Serializable |
insert(String entityName,
Object entity)
Insert a row.
|
void |
refresh(Object entity)
Refresh the entity instance state from the database.
|
void |
refresh(Object entity,
LockMode lockMode)
Refresh the entity instance state from the database.
|
void |
refresh(String entityName,
Object entity)
Refresh the entity instance state from the database.
|
void |
refresh(String entityName,
Object entity,
LockMode lockMode)
Refresh the entity instance state from the database.
|
void |
update(Object entity)
Update a row.
|
void |
update(String entityName,
Object entity)
Update a row.
|
beginTransaction, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createSQLQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransactionvoid close()
close in interface AutoCloseableclose in interface CloseableSerializable insert(Object entity)
entity - a new transient instanceSerializable insert(String entityName, Object entity)
entityName - The entityName for the entity to be insertedentity - a new transient instancevoid update(Object entity)
entity - a detached entity instancevoid update(String entityName, Object entity)
entityName - The entityName for the entity to be updatedentity - a detached entity instancevoid delete(Object entity)
entity - a detached entity instancevoid delete(String entityName, Object entity)
entityName - The entityName for the entity to be deletedentity - a detached entity instanceObject get(String entityName, Serializable id)
entityName - The name of the entity to retrieveid - The id of the entity to retrieveObject get(Class entityClass, Serializable id)
entityClass - The class of the entity to retrieveid - The id of the entity to retrieveObject get(String entityName, Serializable id, LockMode lockMode)
entityName - The name of the entity to retrieveid - The id of the entity to retrievelockMode - The lock mode to apply to the entityObject get(Class entityClass, Serializable id, LockMode lockMode)
entityClass - The class of the entity to retrieveid - The id of the entity to retrievelockMode - The lock mode to apply to the entityvoid refresh(Object entity)
entity - The entity to be refreshed.void refresh(String entityName, Object entity)
entityName - The entityName for the entity to be refreshed.entity - The entity to be refreshed.void refresh(Object entity, LockMode lockMode)
entity - The entity to be refreshed.lockMode - The LockMode to be applied.void refresh(String entityName, Object entity, LockMode lockMode)
entityName - The entityName for the entity to be refreshed.entity - The entity to be refreshed.lockMode - The LockMode to be applied.@Deprecated Connection connection()
SessionCopyright © 2017 JBoss by Red Hat. All rights reserved.