Package org.cxbox.model.core.dao
Interface JpaDao
- All Known Implementing Classes:
JpaDaoImpl
public interface JpaDao
-
Method Summary
Modifier and TypeMethodDescription<T> voidapplyGraph(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.EntityGraph<? super T> fetchGraph) <T> voidapplyGraph(Class<T> clazz, jakarta.persistence.criteria.Root<T> root, String fetchGraph) voidclear()<T extends BaseEntity>
T<T> intvoidvoidDeprecated.<T extends BaseEntity>
Tevict(T o) <T> boolean<T extends BaseEntity>
TfetchBySpecification(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) <T extends BaseEntity>
T<T extends BaseEntity>
TDeprecated.voidflush()<T> Long<T> jakarta.persistence.EntityGraph<? super T>getEntityGraph(Class<T> clazz, String name) <T> jakarta.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> TgetFirstResultOrNull(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) 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><T,X> List<T> Deprecated.<T> List<T><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> TgetSingleResult(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> TgetSingleResultOrNull(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>voidlock(AbstractEntity entity, jakarta.persistence.LockModeType lockMode, int timeout) voidlockAndRefresh(AbstractEntity entity, int timeout) voidvoidrevert(AbstractEntity entity) <T> T<T> List<T>voidDeprecated.<T> List<T>Deprecated.<T> intupdate(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> spec, UpdateSpecification<T> updateSpec)
-
Method Details
-
findById
Deprecated. -
findById
-
getEntityGraph
-
applyGraph
<T> void applyGraph(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.EntityGraph<? super T> fetchGraph) -
applyGraph
-
getCount
-
getCount
-
save
-
saveAll
-
evict
-
flush
void flush() -
refresh
-
delete
-
delete
-
delete
-
update
<T> int update(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> spec, UpdateSpecification<T> updateSpec) -
getList
-
getList
@Deprecated <T,X> List<T> getList(Class<T> clazz, jakarta.persistence.metamodel.SingularAttribute<T, X> name, X value) Deprecated. -
getList
-
getPage
<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) -
getPage
<T> ResultPage<T> getPage(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification, PageSpecification page) -
getStream
-
getStream
-
getList
-
getSingleResult
<T> T getSingleResult(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) -
fetchBySpecification
<T extends BaseEntity> T fetchBySpecification(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) -
getSingleResult
-
getSingleResultOrNull
<T> T getSingleResultOrNull(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) -
getSingleResultOrNull
-
getFirstResultOrNull
<T> T getFirstResultOrNull(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) -
getFirstResultOrNull
-
exists
<T> boolean exists(Class<T> entityClass, org.springframework.data.jpa.domain.Specification<T> specification) -
getListByIds
-
saveWithCompositeKey
Deprecated. -
deleteWithCompositeKey
Deprecated. -
getIds
@Deprecated <T> List<Long> getIds(Class<T> entityClazz, org.springframework.data.jpa.domain.Specification<T> searchSpec) Deprecated. -
clear
void clear() -
lock
-
lockAndRefresh
-
revert
-
selectNativeQuery
@Deprecated <T> List<T> selectNativeQuery(Class<T> entityClazz, String sql, Map<String, Object> params) Deprecated. -
getEntityType
-