JdbcPreparedStatement

Binds the parameter to preparedStatement by calling bindString, bindLong or similar. After binding, execute executes the query without a result, while executeQuery returns JdbcCursor.

Constructors

Link copied to clipboard
constructor(preparedStatement: PreparedStatement)

Functions

Link copied to clipboard
fun bindBigDecimal(index: Int, decimal: BigDecimal?)
Link copied to clipboard
open override fun bindBoolean(index: Int, boolean: Boolean?)
Link copied to clipboard
fun bindByte(index: Int, byte: Byte?)
Link copied to clipboard
open override fun bindBytes(index: Int, bytes: ByteArray?)
Link copied to clipboard
fun bindDate(index: Int, date: Date?)
Link copied to clipboard
open override fun bindDouble(index: Int, double: Double?)
Link copied to clipboard
fun bindFloat(index: Int, float: Float?)
Link copied to clipboard
fun bindInt(index: Int, int: Int?)
Link copied to clipboard
open override fun bindLong(index: Int, long: Long?)
Link copied to clipboard
fun bindObject(index: Int, obj: Any?)
fun bindObject(index: Int, obj: Any?, type: Int)
Link copied to clipboard
fun bindShort(index: Int, short: Short?)
Link copied to clipboard
open override fun bindString(index: Int, string: String?)
Link copied to clipboard
fun bindTime(index: Int, date: Time?)
Link copied to clipboard
fun bindTimestamp(index: Int, timestamp: Timestamp?)
Link copied to clipboard
fun execute(): Long
Link copied to clipboard
fun <R> executeQuery(mapper: (SqlCursor) -> R): R