Package de.bytefish.pgbulkinsert
Class PgBulkInsert<TEntity>
- java.lang.Object
-
- de.bytefish.pgbulkinsert.PgBulkInsert<TEntity>
-
- All Implemented Interfaces:
IPgBulkInsert<TEntity>
public class PgBulkInsert<TEntity> extends Object implements IPgBulkInsert<TEntity>
-
-
Constructor Summary
Constructors Constructor Description PgBulkInsert(IConfiguration configuration, AbstractMapping<TEntity> mapping)PgBulkInsert(AbstractMapping<TEntity> mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaveAll(org.postgresql.PGConnection connection, Collection<TEntity> entities)voidsaveAll(org.postgresql.PGConnection connection, Stream<TEntity> entities)
-
-
-
Constructor Detail
-
PgBulkInsert
public PgBulkInsert(AbstractMapping<TEntity> mapping)
-
PgBulkInsert
public PgBulkInsert(IConfiguration configuration, AbstractMapping<TEntity> mapping)
-
-
Method Detail
-
saveAll
public void saveAll(org.postgresql.PGConnection connection, Stream<TEntity> entities) throws SQLException- Specified by:
saveAllin interfaceIPgBulkInsert<TEntity>- Throws:
SQLException
-
saveAll
public void saveAll(org.postgresql.PGConnection connection, Collection<TEntity> entities) throws SQLException- Throws:
SQLException
-
-