class LoggingPreparedStatement extends LoggingStatement with PreparedStatement
A wrapper for java.sql.PreparedStatement
that logs statements, parameters and benchmark results
to the appropriate JdbcBackend loggers.
- Source
- LoggingStatement.scala
- Alphabetic
- By Inheritance
- LoggingPreparedStatement
- PreparedStatement
- LoggingStatement
- Statement
- AutoCloseable
- Wrapper
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LoggingPreparedStatement(st: PreparedStatement)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toany2stringadd[LoggingPreparedStatement] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (LoggingPreparedStatement, B)
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toArrowAssoc[LoggingPreparedStatement] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addBatch(): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def addBatch(sql: String): Unit
- Definition Classes
- LoggingStatement → Statement
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancel(): Unit
- Definition Classes
- LoggingStatement → Statement
- def clearBatch(): Unit
- Definition Classes
- LoggingStatement → Statement
- def clearParameters(): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def clearParamss: Unit
- Attributes
- protected[this]
- Definition Classes
- LoggingStatement
- def clearWarnings(): Unit
- Definition Classes
- LoggingStatement → Statement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- LoggingStatement → Statement → AutoCloseable
- def closeOnCompletion(): Unit
- Definition Classes
- LoggingStatement → Statement
- def enquoteIdentifier(arg0: String, arg1: Boolean): String
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def enquoteLiteral(arg0: String): String
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def enquoteNCharLiteral(arg0: String): String
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def ensuring(cond: (LoggingPreparedStatement) => Boolean, msg: => Any): LoggingPreparedStatement
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toEnsuring[LoggingPreparedStatement] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (LoggingPreparedStatement) => Boolean): LoggingPreparedStatement
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toEnsuring[LoggingPreparedStatement] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): LoggingPreparedStatement
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toEnsuring[LoggingPreparedStatement] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): LoggingPreparedStatement
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toEnsuring[LoggingPreparedStatement] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def execute(): Boolean
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def execute(sql: String): Boolean
- Definition Classes
- LoggingStatement → Statement
- def execute(sql: String, autoGeneratedKeys: Int): Boolean
- Definition Classes
- LoggingStatement → Statement
- def execute(sql: String, columnIndexes: Array[Int]): Boolean
- Definition Classes
- LoggingStatement → Statement
- def execute(sql: String, columnNames: Array[String]): Boolean
- Definition Classes
- LoggingStatement → Statement
- def executeBatch(): Array[Int]
- Definition Classes
- LoggingStatement → Statement
- def executeLargeBatch(): Array[Long]
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeLargeUpdate(): Long
- Definition Classes
- PreparedStatement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeLargeUpdate(arg0: String, arg1: Array[String]): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeLargeUpdate(arg0: String, arg1: Array[Int]): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeLargeUpdate(arg0: String, arg1: Int): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeLargeUpdate(arg0: String): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def executeQuery(): ResultSet
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def executeQuery(sql: String): ResultSet
- Definition Classes
- LoggingStatement → Statement
- def executeUpdate(): Int
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def executeUpdate(sql: String): Int
- Definition Classes
- LoggingStatement → Statement
- def executeUpdate(sql: String, autoGeneratedKeys: Int): Int
- Definition Classes
- LoggingStatement → Statement
- def executeUpdate(sql: String, columnIndexes: Array[Int]): Int
- Definition Classes
- LoggingStatement → Statement
- def executeUpdate(sql: String, columnNames: Array[String]): Int
- Definition Classes
- LoggingStatement → Statement
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getConnection(): Connection
- Definition Classes
- LoggingStatement → Statement
- def getFetchDirection(): Int
- Definition Classes
- LoggingStatement → Statement
- def getFetchSize(): Int
- Definition Classes
- LoggingStatement → Statement
- def getGeneratedKeys(): ResultSet
- Definition Classes
- LoggingStatement → Statement
- def getLargeMaxRows(): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def getLargeUpdateCount(): Long
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def getMaxFieldSize(): Int
- Definition Classes
- LoggingStatement → Statement
- def getMaxRows(): Int
- Definition Classes
- LoggingStatement → Statement
- def getMetaData(): ResultSetMetaData
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def getMoreResults(): Boolean
- Definition Classes
- LoggingStatement → Statement
- def getMoreResults(current: Int): Boolean
- Definition Classes
- LoggingStatement → Statement
- def getParameterMetaData(): ParameterMetaData
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def getQueryTimeout(): Int
- Definition Classes
- LoggingStatement → Statement
- def getResultSet(): ResultSet
- Definition Classes
- LoggingStatement → Statement
- def getResultSetConcurrency(): Int
- Definition Classes
- LoggingStatement → Statement
- def getResultSetHoldability(): Int
- Definition Classes
- LoggingStatement → Statement
- def getResultSetType(): Int
- Definition Classes
- LoggingStatement → Statement
- def getUpdateCount(): Int
- Definition Classes
- LoggingStatement → Statement
- def getWarnings(): SQLWarning
- Definition Classes
- LoggingStatement → Statement
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isCloseOnCompletion(): Boolean
- Definition Classes
- LoggingStatement → Statement
- def isClosed(): Boolean
- Definition Classes
- LoggingStatement → Statement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPoolable(): Boolean
- Definition Classes
- LoggingStatement → Statement
- def isSimpleIdentifier(arg0: String): Boolean
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def isWrapperFor(iface: Class[_]): Boolean
- Definition Classes
- LoggingStatement → Wrapper
- def logged[T](sql: String, what: String = "statement")(f: => T): T
- Attributes
- protected[this]
- Definition Classes
- LoggingStatement
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def p(idx: Int, tpe: Any, value: Any): Unit
log a parameter
log a parameter
- Attributes
- protected[this]
- Definition Classes
- LoggingStatement
- def pushParams: Unit
- Attributes
- protected[this]
- Definition Classes
- LoggingStatement
- def setArray(i: Int, v: Array): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setAsciiStream(i: Int, v: InputStream, len: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setAsciiStream(i: Int, v: InputStream, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setAsciiStream(i: Int, v: InputStream): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBigDecimal(i: Int, v: BigDecimal): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBinaryStream(i: Int, v: InputStream, len: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBinaryStream(i: Int, v: InputStream, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBinaryStream(i: Int, v: InputStream): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBlob(i: Int, v: Blob): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBlob(i: Int, v: InputStream, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBlob(i: Int, v: InputStream): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBoolean(i: Int, v: Boolean): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setByte(i: Int, v: Byte): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setBytes(i: Int, v: Array[Byte]): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setCharacterStream(i: Int, v: Reader, len: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setCharacterStream(i: Int, v: Reader, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setCharacterStream(i: Int, v: Reader): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setClob(i: Int, v: Clob): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setClob(i: Int, v: Reader, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setClob(i: Int, v: Reader): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setCursorName(name: String): Unit
- Definition Classes
- LoggingStatement → Statement
- def setDate(i: Int, v: Date): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setDate(i: Int, v: Date, c: Calendar): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setDouble(i: Int, v: Double): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setEscapeProcessing(enable: Boolean): Unit
- Definition Classes
- LoggingStatement → Statement
- def setFetchDirection(direction: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setFetchSize(rows: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setFloat(i: Int, v: Float): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setInt(i: Int, v: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setLargeMaxRows(arg0: Long): Unit
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def setLong(i: Int, v: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setMaxFieldSize(max: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setMaxRows(max: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setNCharacterStream(i: Int, v: Reader, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNCharacterStream(i: Int, v: Reader): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNClob(i: Int, v: NClob): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNClob(i: Int, v: Reader, len: Long): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNClob(i: Int, v: Reader): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNString(i: Int, v: String): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNull(i: Int, tp: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setNull(i: Int, tp: Int, tpStr: String): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setObject(i: Int, v: Any): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setObject(i: Int, v: Any, tp: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setObject(i: Int, v: Any, tp: Int, scl: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setObject(arg0: Int, arg1: AnyRef, arg2: SQLType): Unit
- Definition Classes
- PreparedStatement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def setObject(arg0: Int, arg1: AnyRef, arg2: SQLType, arg3: Int): Unit
- Definition Classes
- PreparedStatement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def setPoolable(poolable: Boolean): Unit
- Definition Classes
- LoggingStatement → Statement
- def setQueryTimeout(seconds: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setRef(i: Int, v: Ref): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setRowId(i: Int, v: RowId): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setSQLXML(i: Int, v: SQLXML): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setShort(i: Int, v: Short): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setString(i: Int, v: String): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setTime(i: Int, v: Time): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setTime(i: Int, v: Time, c: Calendar): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setTimestamp(i: Int, v: Timestamp): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setTimestamp(i: Int, v: Timestamp, c: Calendar): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- def setURL(i: Int, v: URL): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unwrap[T](iface: Class[T]): T
- Definition Classes
- LoggingStatement → Wrapper
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toStringFormat[LoggingPreparedStatement] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def setUnicodeStream(i: Int, v: InputStream, len: Int): Unit
- Definition Classes
- LoggingPreparedStatement → PreparedStatement
- Annotations
- @deprecated
- Deprecated
(Since version ) setUnicodeStream is deprecated
- def →[B](y: B): (LoggingPreparedStatement, B)
- Implicit
- This member is added by an implicit conversion from LoggingPreparedStatement toArrowAssoc[LoggingPreparedStatement] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...