Class DetachableJpaRepoImpl<T,ID extends Serializable>
java.lang.Object
org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
gov.llnl.gnem.apps.coda.common.repository.DetachableJpaRepoImpl<T,ID>
- All Implemented Interfaces:
DetachableJpaRepository<T,
,ID> org.springframework.data.jpa.repository.JpaRepository<T,
,ID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
,org.springframework.data.jpa.repository.support.JpaRepositoryConfigurationAware
,org.springframework.data.jpa.repository.support.JpaRepositoryImplementation<T,
,ID> org.springframework.data.repository.CrudRepository<T,
,ID> org.springframework.data.repository.ListCrudRepository<T,
,ID> org.springframework.data.repository.ListPagingAndSortingRepository<T,
,ID> org.springframework.data.repository.PagingAndSortingRepository<T,
,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>
,org.springframework.data.repository.Repository<T,
ID>
public class DetachableJpaRepoImpl<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
implements DetachableJpaRepository<T,ID>
-
Constructor Summary
ConstructorDescriptionDetachableJpaRepoImpl
(Class<T> domainClass, jakarta.persistence.EntityManager em) DetachableJpaRepoImpl
(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, jakarta.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionfindOneDetached
(ID id) Retrieves an entity by its id and detaches it from the EntityManager.Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository
count, count, count, delete, delete, deleteAll, deleteAll, deleteAllById, deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteById, exists, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findBy, findBy, findById, findOne, findOne, flush, getById, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getQueryHintsForCount, getReferenceById, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAllAndFlush, saveAndFlush, setEscapeCharacter, setProjectionFactory, setRepositoryMethodMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Constructor Details
-
DetachableJpaRepoImpl
public DetachableJpaRepoImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, jakarta.persistence.EntityManager entityManager) -
DetachableJpaRepoImpl
-
-
Method Details
-
findOneDetached
Description copied from interface:DetachableJpaRepository
Retrieves an entity by its id and detaches it from the EntityManager.- Specified by:
findOneDetached
in interfaceDetachableJpaRepository<T,
ID extends Serializable> - Parameters:
id
- must not be null.- Returns:
- the entity with the given id or null if none found
-