Class PostgreSQLLoader
java.lang.Object
com.maplander.backend.utils.migration.loader.PostgreSQLLoader
-
Constructor Summary
ConstructorsConstructorDescriptionPostgreSQLLoader(org.hibernate.SessionFactory sessionFactory, int batchSize) -
Method Summary
Modifier and TypeMethodDescription<T> long<T> void<T> voiddeleteByIds(Class<T> entityClass, List<Long> ids) voidexecuteNativeQuery(String sql) <T> List<T> findAllIds(Class<T> entityClass) findAllStringIds(Class<T> entityClass) <T> List<T> findAllWithLimit(Class<T> entityClass, int limit) <T> Torg.hibernate.SessionFactory<T> voidsave(T entity) <T> void<T> void<T> voidsaveBatchInChunks(List<T> entities, Class<T> entityClass, int chunkSize) voidtruncateAll(List<Class<?>> entityClasses)
-
Constructor Details
-
PostgreSQLLoader
public PostgreSQLLoader() -
PostgreSQLLoader
public PostgreSQLLoader(org.hibernate.SessionFactory sessionFactory, int batchSize)
-
-
Method Details
-
save
public <T> void save(T entity) -
saveAll
-
saveBatch
-
saveBatchInChunks
-
findAll
-
findAllWithLimit
-
count
-
deleteAll
-
truncateAll
-
deleteByIds
-
executeNativeQuery
-
findById
-
findAllIds
-
findAllStringIds
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
-