|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaOperations
The Interface containing all the JpaOperations those will be executed by the Jpa Spring Integration components.
Method Summary | ||
---|---|---|
void |
delete(java.lang.Object entity)
|
|
void |
deleteInBatch(java.lang.Iterable<?> entities)
|
|
int |
executeUpdate(java.lang.String updateQuery,
ParameterSource source)
Executes the given update statement and uses the given parameter source to set the required query parameters. |
|
int |
executeUpdateWithNamedQuery(java.lang.String updateQuery,
ParameterSource source)
|
|
int |
executeUpdateWithNativeQuery(java.lang.String updateQuery,
ParameterSource source)
|
|
|
find(java.lang.Class<T> entityType,
java.lang.Object id)
Find an Entity of given type with the given primary key type. |
|
java.util.List<?> |
getResultListForClass(java.lang.Class<?> entityClass,
int maxNumberOfReturnedObjects)
|
|
java.util.List<?> |
getResultListForNamedQuery(java.lang.String selectNamedQuery,
ParameterSource jpaQLParameterSource,
int maxNumberOfResults)
|
|
java.util.List<?> |
getResultListForNativeQuery(java.lang.String selectQuery,
java.lang.Class<?> entityClass,
ParameterSource jpaQLParameterSource,
int maxNumberOfResults)
|
|
java.util.List<?> |
getResultListForQuery(java.lang.String query,
ParameterSource source)
Executes the provided query to return a list of results |
|
java.util.List<?> |
getResultListForQuery(java.lang.String query,
ParameterSource source,
int maxNumberOfResults)
Executes the provided query to return a list of results. |
|
java.lang.Object |
getSingleResultForQuery(java.lang.String query,
ParameterSource source)
Executes the provided query to return a single element |
|
java.lang.Object |
merge(java.lang.Object entity)
The entity to be merged with the entity manager |
|
void |
persist(java.lang.Object entity)
Persists the entity |
Method Detail |
---|
void delete(java.lang.Object entity)
entity
- void deleteInBatch(java.lang.Iterable<?> entities)
entities
- int executeUpdate(java.lang.String updateQuery, ParameterSource source)
updateQuery
- Must Not be empty.source
- Must Not be null.
int executeUpdateWithNamedQuery(java.lang.String updateQuery, ParameterSource source)
updateQuery
- source
-
int executeUpdateWithNativeQuery(java.lang.String updateQuery, ParameterSource source)
updateQuery
- source
-
<T> T find(java.lang.Class<T> entityType, java.lang.Object id)
T
- entityType
- id
-
java.util.List<?> getResultListForClass(java.lang.Class<?> entityClass, int maxNumberOfReturnedObjects)
entityClass
- maxNumberOfReturnedObjects
-
java.util.List<?> getResultListForNamedQuery(java.lang.String selectNamedQuery, ParameterSource jpaQLParameterSource, int maxNumberOfResults)
selectNamedQuery
- jpaQLParameterSource
- maxNumberOfResults
-
java.util.List<?> getResultListForNativeQuery(java.lang.String selectQuery, java.lang.Class<?> entityClass, ParameterSource jpaQLParameterSource, int maxNumberOfResults)
selectQuery
- entityClass
- jpaQLParameterSource
- maxNumberOfResults
-
java.util.List<?> getResultListForQuery(java.lang.String query, ParameterSource source)
query
- source
- the Parameter source for this query to be executed, if none then set as null
java.util.List<?> getResultListForQuery(java.lang.String query, ParameterSource source, int maxNumberOfResults)
query
- Must not be null or emptymaxNumberOfResults
- Must be a non-negative valuesource
- the Parameter source for this query to be executed, if none then set null
java.lang.Object getSingleResultForQuery(java.lang.String query, ParameterSource source)
query
- Must not be emptysource
- the Parameter source for this query to be executed, if none then set as null
java.lang.Object merge(java.lang.Object entity)
entity
- Must not be null.
void persist(java.lang.Object entity)
entity
- Must not be null
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |