public class HibernateRepositoryImpl<T> extends Object implements HibernateRepository<T>
Constructor and Description |
---|
HibernateRepositoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected <R> R |
executeBatch(Supplier<R> callback) |
protected Integer |
getBatchSize(org.hibernate.Session session) |
<S extends T> |
merge(S entity) |
<S extends T> |
mergeAll(Iterable<S> entities) |
<S extends T> |
mergeAllAndFlush(Iterable<S> entities) |
<S extends T> |
mergeAndFlush(S entity) |
<S extends T> |
peristAllAndFlush(Iterable<S> entities) |
<S extends T> |
persist(S entity) |
<S extends T> |
persistAll(Iterable<S> entities) |
<S extends T> |
persistAndFlush(S entity) |
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
<S extends T> |
saveAllAndFlush(Iterable<S> entities) |
<S extends T> |
saveAndFlush(S entity) |
protected org.hibernate.Session |
session() |
protected <S extends T> |
unsupported() |
<S extends T> |
update(S entity) |
<S extends T> |
updateAll(Iterable<S> entities) |
<S extends T> |
updateAllAndFlush(Iterable<S> entities) |
<S extends T> |
updateAndFlush(S entity) |
public <S extends T> S save(S entity)
save
in interface HibernateRepository<T>
public <S extends T> List<S> saveAll(Iterable<S> entities)
saveAll
in interface HibernateRepository<T>
public <S extends T> S saveAndFlush(S entity)
saveAndFlush
in interface HibernateRepository<T>
public <S extends T> List<S> saveAllAndFlush(Iterable<S> entities)
saveAllAndFlush
in interface HibernateRepository<T>
public <S extends T> S persist(S entity)
persist
in interface HibernateRepository<T>
public <S extends T> S persistAndFlush(S entity)
persistAndFlush
in interface HibernateRepository<T>
public <S extends T> List<S> persistAll(Iterable<S> entities)
persistAll
in interface HibernateRepository<T>
public <S extends T> List<S> peristAllAndFlush(Iterable<S> entities)
peristAllAndFlush
in interface HibernateRepository<T>
public <S extends T> S merge(S entity)
merge
in interface HibernateRepository<T>
public <S extends T> S mergeAndFlush(S entity)
mergeAndFlush
in interface HibernateRepository<T>
public <S extends T> List<S> mergeAll(Iterable<S> entities)
mergeAll
in interface HibernateRepository<T>
public <S extends T> List<S> mergeAllAndFlush(Iterable<S> entities)
mergeAllAndFlush
in interface HibernateRepository<T>
public <S extends T> S update(S entity)
update
in interface HibernateRepository<T>
public <S extends T> S updateAndFlush(S entity)
updateAndFlush
in interface HibernateRepository<T>
public <S extends T> List<S> updateAll(Iterable<S> entities)
updateAll
in interface HibernateRepository<T>
public <S extends T> List<S> updateAllAndFlush(Iterable<S> entities)
updateAllAndFlush
in interface HibernateRepository<T>
protected Integer getBatchSize(org.hibernate.Session session)
protected <R> R executeBatch(Supplier<R> callback)
protected org.hibernate.Session session()
protected <S extends T> S unsupported()
Copyright © 2022. All rights reserved.