Class BaseJdbcOutputStore.StructMappingToColumnMapping
java.lang.Object
nz.org.riskscape.engine.defaults.data.jdbc.BaseJdbcOutputStore.StructMappingToColumnMapping
- Enclosing class:
- BaseJdbcOutputStore
Data to allow the mapping of a StructFlattener.StructMapping
to a DB column.
-
Constructor Summary
ConstructorDescriptionStructMappingToColumnMapping
(nz.org.riskscape.engine.output.StructFlattener.StructMapping structMapping, String dbColumnType, Function<Object, Object> mapper) StructMappingToColumnMapping
(nz.org.riskscape.engine.output.StructFlattener.StructMapping structMapping, String dbColumnType, Function<Object, Object> mapper, Optional<Integer> sqlType) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The SQL type that will be required for storing the mapped values.AFunction
to translate the RiskScape value into one that is a type compatible withgetDbColumnType()
.An optional integer that when supplied will be passed toPreparedStatement.setObject(int, java.lang.Object, int)
in argument three.nz.org.riskscape.engine.output.StructFlattener.StructMapping
TheStructFlattener.StructMapping
that is the source of the data.int
hashCode()
toString()
-
Constructor Details
-
StructMappingToColumnMapping
-
StructMappingToColumnMapping
-
-
Method Details
-
getStructMapping
public nz.org.riskscape.engine.output.StructFlattener.StructMapping getStructMapping()The
StructFlattener.StructMapping
that is the source of the data. -
getDbColumnType
The SQL type that will be required for storing the mapped values.
-
getMapper
A
Function
to translate the RiskScape value into one that is a type compatible withgetDbColumnType()
. -
getSqlType
An optional integer that when supplied will be passed to
PreparedStatement.setObject(int, java.lang.Object, int)
in argument three.If not given the
PreparedStatement.setObject(int, java.lang.Object)
is used instead. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-