Class PostgresDispatcher<T>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.postgres.PostgresDispatcher<T>
-
- All Implemented Interfaces:
JdbcDispatcher<T>
class PostgresDispatcher<T> extends Object implements JdbcDispatcher<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.api.JdbcDispatcher
JdbcDispatcher.Builder<T extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(DataSource dataSource, Collection<String> users, Consumer<String> callback)voiddrop(DataSource dataSource, Consumer<String> callback, Predicate<SQLException> check)voidinsert(Connection conn, Map<RevisionedId,T> payloads)voidprintTo(Consumer<List<String>> consumer)voidtruncate(DataSource dataSource)
-
-
-
Method Detail
-
printTo
public void printTo(Consumer<List<String>> consumer)
- Specified by:
printToin interfaceJdbcDispatcher<T>
-
create
public void create(DataSource dataSource, Collection<String> users, Consumer<String> callback) throws SQLException
- Specified by:
createin interfaceJdbcDispatcher<T>- Throws:
SQLException
-
drop
public void drop(DataSource dataSource, Consumer<String> callback, Predicate<SQLException> check) throws SQLException
- Specified by:
dropin interfaceJdbcDispatcher<T>- Throws:
SQLException
-
insert
public void insert(Connection conn, Map<RevisionedId,T> payloads) throws SQLException
- Specified by:
insertin interfaceJdbcDispatcher<T>- Throws:
SQLException
-
truncate
public void truncate(DataSource dataSource) throws SQLException
- Specified by:
truncatein interfaceJdbcDispatcher<T>- Throws:
SQLException
-
-