Class PostgresDispatcher<T>
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.postgres.PostgresDispatcher<T>
- All Implemented Interfaces:
JdbcDispatcher<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.api.JdbcDispatcher
JdbcDispatcher.Builder<T extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(DataSource dataSource, Collection<String> users, Consumer<String> callback) voiddrop(DataSource dataSource, Consumer<String> callback, Predicate<SQLException> check) voidinsert(Connection conn, Map<RevisionedId, T> payloads) voidvoidtruncate(DataSource dataSource)
-
Constructor Details
-
PostgresDispatcher
-
-
Method Details
-
printTo
- 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
- Specified by:
insertin interfaceJdbcDispatcher<T>- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceJdbcDispatcher<T>- Throws:
SQLException
-