public class SimpleJpaBatchRepository<T,ID> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> implements JpaBatchRepository<T,ID>
| 构造器和说明 |
|---|
SimpleJpaBatchRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<T> |
saveBatch(java.lang.Iterable<T> entities)
Batch Saves all given entities.
|
count, count, count, delete, deleteAll, deleteAll, deleteAllInBatch, deleteById, deleteInBatch, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAndFlush, setEscapeCharacter, setRepositoryMethodMetadata@Transactional public java.util.List<T> saveBatch(java.lang.Iterable<T> entities)
JpaBatchRepositorysaveBatch 在接口中 JpaBatchRepository<T,ID>entities - must not be null nor must it contain null.