MariaDbPreparedStatement
classin packageklyn.databases.sql.mariadb
public class MariaDbPreparedStatement extends MariaDbStatementBase implements PreparedStatement:
MariaDbPreparedStatement
All Implemented Interfaces: PreparedStatement
MariaDB prepared statement. The current implementation renders bound parameters client-side before sending the final SQL to MariaDB.
import klyn.databases.sql.mariadb

# prepared = connection.prepared("select * from users where id = ?")
Properties
Modifier and Type Member Description
public readonly property parameterInfo
parameterInfo as ParameterMetaData:
No summary.
public readonly property parameters
parameters as Map<Int, Object>:
No summary.
public readonly property sql
sql as String:
No summary.
Properties inherited from PreparedStatement: parameterInfo, parameters, sql
Properties inherited from Statement: batchSize, closeOnCompletion, closed, concurrency, connection, cursorName, escapeProcessing, fetchDirection, fetchSize, generatedKeys, holdability, largeMaxRows, maxFieldSize, maxRows, poolable, queryTimeoutSeconds, resultSetType, warning
Methods
Modifier and Type Member Description
public bind
bind(index as Int, value as Object) as PreparedStatement throws SQLException:
No summary.
public bindBoolean
bindBoolean(index as Int, value as Boolean) as PreparedStatement throws SQLException:
No summary.
public bindDouble
bindDouble(index as Int, value as Double) as PreparedStatement throws SQLException:
No summary.
public bindInt
bindInt(index as Int, value as Int) as PreparedStatement throws SQLException:
No summary.
public bindLong
bindLong(index as Int, value as Long) as PreparedStatement throws SQLException:
No summary.
public bindNull
bindNull(index as Int, sqlType as Int = Types.NULL) as PreparedStatement throws SQLException:
No summary.
public bindString
bindString(index as Int, value as String) as PreparedStatement throws SQLException:
No summary.
public clearParameters
clearParameters() as Void:
No summary.
public execute
execute() as Boolean throws SQLException:
No summary.
public query
query() as ResultSet throws SQLException:
No summary.
public update
update() as Long throws SQLException:
No summary.
Methods inherited from PreparedStatement: bind, bindBoolean, bindDouble, bindInt, bindLong, bindNull, bindString, clearParameters, execute, query, update
Methods inherited from Statement: addBatch, clearBatch, clearWarnings, execute, executeBatch, executeQuery, executeUpdate, query, update
Methods inherited from AutoClosable: close