addBatch

fun addBatch(rowData: List<Any?>, numColumns: Int, preparedStatement: PreparedStatement): Boolean
fun addBatch(rowData: Array<Any?>, numColumns: Int, preparedStatement: PreparedStatement): Boolean

This method inserts the data into the prepared statement as a batch insert. The statement is not executed.

Return

returns true if the data was inserted false if something went wrong and no insert made

Parameters

rowData

the data to be inserted

numColumns

the column metadata for the row set

preparedStatement

the prepared statement to use