public interface JpaDao
| Modifier and Type | Method and Description |
|---|---|
<T> void |
applyGraph(Class<T> clazz,
javax.persistence.criteria.Root<T> root,
String fetchGraph) |
<T> void |
applyGraph(javax.persistence.criteria.Root<T> root,
javax.persistence.EntityGraph<? super T> fetchGraph) |
void |
clear() |
void |
delete(AbstractEntity o) |
<T extends BaseEntity> |
delete(Class<T> clazz,
Long id) |
<T> int |
delete(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> spec) |
void |
deleteWithCompositeKey(EmbeddedKeyable o)
Deprecated.
|
<T extends BaseEntity> |
evict(T o) |
<T> boolean |
exists(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<T extends BaseEntity> |
fetchBySpecification(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<T extends BaseEntity> |
findById(Class<T> clazz,
Long id) |
<T extends BaseEntity> |
findById(String type,
Long id)
Deprecated.
|
void |
flush() |
Long |
getCount(Class<?> clazz) |
<T> Long |
getCount(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<T> javax.persistence.EntityGraph<? super T> |
getEntityGraph(Class<T> clazz,
String name) |
<T> javax.persistence.metamodel.EntityType<T> |
getEntityType(Class<T> cls) |
<R,T> T |
getFirstResultOrNull(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification) |
<T> T |
getFirstResultOrNull(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<T> List<Long> |
getIds(Class<T> entityClazz,
org.springframework.data.jpa.domain.Specification<T> searchSpec)
Deprecated.
|
<R,T> List<T> |
getList(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification) |
<T> List<T> |
getList(Class<T> clazz) |
<T,X> List<T> |
getList(Class<T> clazz,
javax.persistence.metamodel.SingularAttribute<T,X> name,
X value)
Deprecated.
|
<T> List<T> |
getList(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<T> List<T> |
getListByIds(Class<T> clazz,
List<Long> ids) |
<R,T> ResultPage<T> |
getPage(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification,
PageSpecification page) |
<T> ResultPage<T> |
getPage(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification,
PageSpecification page) |
<R,T> T |
getSingleResult(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification) |
<T> T |
getSingleResult(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<R,T> T |
getSingleResultOrNull(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification) |
<T> T |
getSingleResultOrNull(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
<R,T> Stream<T> |
getStream(Class<R> rootClass,
Class<T> targetClass,
Selector<R,T> selector,
org.springframework.data.jpa.domain.Specification<R> specification) |
<T> Stream<T> |
getStream(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> specification) |
void |
lock(AbstractEntity entity,
javax.persistence.LockModeType lockMode,
int timeout) |
void |
lockAndRefresh(AbstractEntity entity,
int timeout) |
void |
refresh(AbstractEntity o) |
void |
revert(AbstractEntity entity) |
<T> T |
save(Object entity) |
void |
saveWithCompositeKey(EmbeddedKeyable o)
Deprecated.
|
<T> List<T> |
selectNativeQuery(Class<T> entityClazz,
String sql,
Map<String,Object> params)
Deprecated.
|
<T> int |
update(Class<T> entityClass,
org.springframework.data.jpa.domain.Specification<T> spec,
UpdateSpecification<T> updateSpec) |
@Deprecated <T extends BaseEntity> T findById(String type, Long id)
<T extends BaseEntity> T findById(Class<T> clazz, Long id)
<T> javax.persistence.EntityGraph<? super T> getEntityGraph(Class<T> clazz, String name)
<T> void applyGraph(javax.persistence.criteria.Root<T> root,
javax.persistence.EntityGraph<? super T> fetchGraph)
<T> void applyGraph(Class<T> clazz, javax.persistence.criteria.Root<T> root, String fetchGraph)
<T> Long getCount(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<T> T save(Object entity)
<T extends BaseEntity> T evict(T o)
void flush()
void refresh(AbstractEntity o)
void delete(AbstractEntity o)
<T extends BaseEntity> T delete(Class<T> clazz, Long id)
<T> int delete(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> spec)
<T> int update(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> spec, UpdateSpecification<T> updateSpec)
@Deprecated <T,X> List<T> getList(Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,X> name, X value)
<T> List<T> getList(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<R,T> ResultPage<T> getPage(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification, PageSpecification page)
<T> ResultPage<T> getPage(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification, PageSpecification page)
<T> Stream<T> getStream(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<R,T> Stream<T> getStream(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification)
<R,T> List<T> getList(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification)
<T> T getSingleResult(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<T extends BaseEntity> T fetchBySpecification(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<R,T> T getSingleResult(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification)
<T> T getSingleResultOrNull(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<R,T> T getSingleResultOrNull(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification)
<T> T getFirstResultOrNull(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
<R,T> T getFirstResultOrNull(Class<R> rootClass, Class<T> targetClass, Selector<R,T> selector, org.springframework.data.jpa.domain.Specification<R> specification)
<T> boolean exists(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification)
@Deprecated void saveWithCompositeKey(EmbeddedKeyable o)
@Deprecated void deleteWithCompositeKey(EmbeddedKeyable o)
@Deprecated <T> List<Long> getIds(Class<T> entityClazz, org.springframework.data.jpa.domain.Specification<T> searchSpec)
void clear()
void lock(AbstractEntity entity, javax.persistence.LockModeType lockMode, int timeout)
void lockAndRefresh(AbstractEntity entity, int timeout)
void revert(AbstractEntity entity)
@Deprecated <T> List<T> selectNativeQuery(Class<T> entityClazz, String sql, Map<String,Object> params)
<T> javax.persistence.metamodel.EntityType<T> getEntityType(Class<T> cls)
Copyright © 2018–2021 Tesler. All rights reserved.