public interface StatelessSession extends SharedSessionContract
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, getNamedQuery, getTenantIdentifier, getTransaction
void close()
Serializable 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)
Object get(Class entityClass, Serializable id)
Object get(String entityName, Serializable id, LockMode lockMode)
Object get(Class entityClass, Serializable id, LockMode lockMode)
void 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()
Session
Copyright © 2018 JBoss by Red Hat. All rights reserved.