net.corda.node.utilities / JDBCHashMap / addKeyToInsert

addKeyToInsert

protected fun addKeyToInsert(insert: <ERROR CLASS>, entry: Entry<K, V>, finalizables: MutableList<() -> Unit>): Unit

Implementation should marshall the key to the insert statement.

If some cleanup is required after the insert statement is executed, such as closing a Blob, then add a closure to the finalizables to do so.

See example implementations in JDBCHashMap.