Class JdbiPersistMapper
- java.lang.Object
-
- io.vlingo.symbio.store.object.jdbc.jdbi.JdbiPersistMapper
-
public class JdbiPersistMapper extends java.lang.Object
A Jdbi-basedPersistentObjectMapper::persistMapper
.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.function.BiFunction<org.jdbi.v3.core.statement.Update,java.lang.Object,org.jdbi.v3.core.statement.Update>
binder
java.lang.String
insertStatement
java.lang.String
updateStatement
-
Constructor Summary
Constructors Constructor Description JdbiPersistMapper(java.lang.String insertStatement, java.lang.String updateStatement, java.util.function.BiFunction<org.jdbi.v3.core.statement.Update,java.lang.Object,org.jdbi.v3.core.statement.Update> binder)
Construct my state withinsertStatement
,updateStatement
, andbinder
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JdbiPersistMapper
with(java.lang.String insertStatement, java.lang.String updateStatement, java.util.function.BiFunction<org.jdbi.v3.core.statement.Update,java.lang.Object,org.jdbi.v3.core.statement.Update> binder)
Answer a newJdbiPersistMapper
withinsertStatement
,updateStatement
, andbinder
.
-
-
-
Constructor Detail
-
JdbiPersistMapper
public JdbiPersistMapper(java.lang.String insertStatement, java.lang.String updateStatement, java.util.function.BiFunction<org.jdbi.v3.core.statement.Update,java.lang.Object,org.jdbi.v3.core.statement.Update> binder)
Construct my state withinsertStatement
,updateStatement
, andbinder
.- Parameters:
insertStatement
- the String insert statementupdateStatement
- the String update statementbinder
- theBiFunction<Update,Object,Update>
used to bind parameters
-
-
Method Detail
-
with
public static JdbiPersistMapper with(java.lang.String insertStatement, java.lang.String updateStatement, java.util.function.BiFunction<org.jdbi.v3.core.statement.Update,java.lang.Object,org.jdbi.v3.core.statement.Update> binder)
Answer a newJdbiPersistMapper
withinsertStatement
,updateStatement
, andbinder
.- Parameters:
insertStatement
- the String insert statementupdateStatement
- the String update statementbinder
- theBiFunction<Update,Object,Update>
used to bind parameters- Returns:
- JdbiPersistMapper
-
-