|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PersistenceContext
).
Note that this interface did not get upgraded to JPA 2.0 and never will.
@Deprecated public interface JpaOperations
Interface that specifies a basic set of JPA operations,
implemented by JpaTemplate
. Not often used, but a useful
option to enhance testability, as it can easily be mocked or stubbed.
Defines JpaTemplate
's data access methods that mirror
various javax.persistence.EntityManager
methods. Users are
strongly encouraged to read the JPA EntityManager
javadocs for details on the semantics of those methods.
Note that lazy loading will just work with an open JPA
EntityManager
, either within a managed transaction or within
OpenEntityManagerInViewFilter
/
OpenEntityManagerInViewInterceptor
.
Furthermore, some operations just make sense within transactions,
for example: flush
, clear
.
JpaTemplate
,
javax.persistence.EntityManager
,
JpaTransactionManager
,
JpaDialect
,
OpenEntityManagerInViewFilter
,
OpenEntityManagerInViewInterceptor
Method Summary | ||
---|---|---|
boolean |
contains(java.lang.Object entity)
Deprecated. |
|
|
execute(JpaCallback<T> action)
Deprecated. |
|
java.util.List |
executeFind(JpaCallback<?> action)
Deprecated. |
|
|
find(java.lang.Class<T> entityClass,
java.lang.Object id)
Deprecated. |
|
java.util.List |
find(java.lang.String queryString)
Deprecated. |
|
java.util.List |
find(java.lang.String queryString,
java.lang.Object... values)
Deprecated. |
|
java.util.List |
findByNamedParams(java.lang.String queryString,
java.util.Map<java.lang.String,?> params)
Deprecated. |
|
java.util.List |
findByNamedQuery(java.lang.String queryName)
Deprecated. |
|
java.util.List |
findByNamedQuery(java.lang.String queryName,
java.lang.Object... values)
Deprecated. |
|
java.util.List |
findByNamedQueryAndNamedParams(java.lang.String queryName,
java.util.Map<java.lang.String,?> params)
Deprecated. |
|
void |
flush()
Deprecated. |
|
|
getReference(java.lang.Class<T> entityClass,
java.lang.Object id)
Deprecated. |
|
|
merge(T entity)
Deprecated. |
|
void |
persist(java.lang.Object entity)
Deprecated. |
|
void |
refresh(java.lang.Object entity)
Deprecated. |
|
void |
remove(java.lang.Object entity)
Deprecated. |
Method Detail |
---|
<T> T execute(JpaCallback<T> action) throws DataAccessException
DataAccessException
java.util.List executeFind(JpaCallback<?> action) throws DataAccessException
DataAccessException
<T> T find(java.lang.Class<T> entityClass, java.lang.Object id) throws DataAccessException
DataAccessException
<T> T getReference(java.lang.Class<T> entityClass, java.lang.Object id) throws DataAccessException
DataAccessException
boolean contains(java.lang.Object entity) throws DataAccessException
DataAccessException
void refresh(java.lang.Object entity) throws DataAccessException
DataAccessException
void persist(java.lang.Object entity) throws DataAccessException
DataAccessException
<T> T merge(T entity) throws DataAccessException
DataAccessException
void remove(java.lang.Object entity) throws DataAccessException
DataAccessException
void flush() throws DataAccessException
DataAccessException
java.util.List find(java.lang.String queryString) throws DataAccessException
DataAccessException
java.util.List find(java.lang.String queryString, java.lang.Object... values) throws DataAccessException
DataAccessException
java.util.List findByNamedParams(java.lang.String queryString, java.util.Map<java.lang.String,?> params) throws DataAccessException
DataAccessException
java.util.List findByNamedQuery(java.lang.String queryName) throws DataAccessException
DataAccessException
java.util.List findByNamedQuery(java.lang.String queryName, java.lang.Object... values) throws DataAccessException
DataAccessException
java.util.List findByNamedQueryAndNamedParams(java.lang.String queryName, java.util.Map<java.lang.String,?> params) throws DataAccessException
DataAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |