NpStatement

abstract class NpStatement

Functions

Link copied to clipboard
fun <T : Any> executeUpdateWithGeneratedKeys(declaredGeneratedKeys: DeclaredGeneratedKeys<T>): List<T>

Execute update and get the auto generated key(s) as a list.

Link copied to clipboard
fun <T : Any> getGeneratedKeysList(declaredGeneratedKeys: DeclaredGeneratedKeys<T>, expectedUpdateCount: Int = 0): List<T>

Get a list of one or more keys generated by the insert query.

Link copied to clipboard
fun setParameter(name: String, value: Any?): NpStatement

Set a parameter by name

Link copied to clipboard

Set parameter(s) using a data object (DTO)

Link copied to clipboard

Set parameter(s) using a map of case-insensitive names and values

Link copied to clipboard

Execute the statement and close it.

Link copied to clipboard
fun <T> useExecuteQuery(resultSetToValue: (rs: ResultSet) -> T): T

Execute the statement, execute resultSetToValue function and finally close the statement

Link copied to clipboard

Execute the statement and close it.

Link copied to clipboard

Execute update and get the auto generated key(s) as a list, then close the statement.

Properties

Link copied to clipboard
Link copied to clipboard

Inheritors

Link copied to clipboard
Link copied to clipboard