deduper / org.bradfordmiller.deduper.persistors / SqlTargetPersistor

SqlTargetPersistor

class SqlTargetPersistor : TargetPersistor

create and writes out "deduped" data to a sql table. targetName is the table name in the javax.sql.DataSource configured in the targetJndi for the associated context. varcharPadding is a number of extra bytes which can be configured if the target needs larger varchar fields than were extracted by the source.

Constructors

<init>

create and writes out "deduped" data to a sql table. targetName is the table name in the javax.sql.DataSource configured in the targetJndi for the associated context. varcharPadding is a number of extra bytes which can be configured if the target needs larger varchar fields than were extracted by the source.

SqlTargetPersistor(targetName: String, targetJndi: String, context: String, varcharPadding: Int)

Functions

createTarget

creates a target sql table based on the qi found in the source. deleteIfTargetExists will drop the table if it already exists before attempting to create it

fun createTarget(qi: QueryInfo, deleteIfTargetExists: Boolean): Unit

writeRows

writes out a list of data rows to a a sql table and returns the number of rows written

fun writeRows(rows: MutableList<Map<String, Any>>): Long

Companion Object Properties

logger

val logger: Logger!