Packages

c

slick.jdbc

LoggingPreparedStatement

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
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingPreparedStatement
  2. PreparedStatement
  3. LoggingStatement
  4. Statement
  5. AutoCloseable
  6. Wrapper
  7. AnyRef
  8. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LoggingPreparedStatement(st: PreparedStatement)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def addBatch(): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  6. def addBatch(sql: String): Unit
    Definition Classes
    LoggingStatement → Statement
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def cancel(): Unit
    Definition Classes
    LoggingStatement → Statement
  9. def clearBatch(): Unit
    Definition Classes
    LoggingStatement → Statement
  10. def clearParameters(): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  11. def clearParamss: Unit
    Attributes
    protected[this]
    Definition Classes
    LoggingStatement
  12. def clearWarnings(): Unit
    Definition Classes
    LoggingStatement → Statement
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. def close(): Unit
    Definition Classes
    LoggingStatement → Statement → AutoCloseable
  15. def closeOnCompletion(): Unit
    Definition Classes
    LoggingStatement → Statement
  16. def enquoteIdentifier(arg0: String, arg1: Boolean): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  17. def enquoteLiteral(arg0: String): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  18. def enquoteNCharLiteral(arg0: String): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  19. 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
  20. 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
  21. 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
  22. 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
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. def execute(): Boolean
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  26. def execute(sql: String): Boolean
    Definition Classes
    LoggingStatement → Statement
  27. def execute(sql: String, autoGeneratedKeys: Int): Boolean
    Definition Classes
    LoggingStatement → Statement
  28. def execute(sql: String, columnIndexes: Array[Int]): Boolean
    Definition Classes
    LoggingStatement → Statement
  29. def execute(sql: String, columnNames: Array[String]): Boolean
    Definition Classes
    LoggingStatement → Statement
  30. def executeBatch(): Array[Int]
    Definition Classes
    LoggingStatement → Statement
  31. def executeLargeBatch(): Array[Long]
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  32. def executeLargeUpdate(): Long
    Definition Classes
    PreparedStatement
    Annotations
    @throws(classOf[java.sql.SQLException])
  33. def executeLargeUpdate(arg0: String, arg1: Array[String]): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  34. def executeLargeUpdate(arg0: String, arg1: Array[Int]): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  35. def executeLargeUpdate(arg0: String, arg1: Int): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  36. def executeLargeUpdate(arg0: String): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  37. def executeQuery(): ResultSet
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  38. def executeQuery(sql: String): ResultSet
    Definition Classes
    LoggingStatement → Statement
  39. def executeUpdate(): Int
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  40. def executeUpdate(sql: String): Int
    Definition Classes
    LoggingStatement → Statement
  41. def executeUpdate(sql: String, autoGeneratedKeys: Int): Int
    Definition Classes
    LoggingStatement → Statement
  42. def executeUpdate(sql: String, columnIndexes: Array[Int]): Int
    Definition Classes
    LoggingStatement → Statement
  43. def executeUpdate(sql: String, columnNames: Array[String]): Int
    Definition Classes
    LoggingStatement → Statement
  44. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. def getConnection(): Connection
    Definition Classes
    LoggingStatement → Statement
  46. def getFetchDirection(): Int
    Definition Classes
    LoggingStatement → Statement
  47. def getFetchSize(): Int
    Definition Classes
    LoggingStatement → Statement
  48. def getGeneratedKeys(): ResultSet
    Definition Classes
    LoggingStatement → Statement
  49. def getLargeMaxRows(): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  50. def getLargeUpdateCount(): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  51. def getMaxFieldSize(): Int
    Definition Classes
    LoggingStatement → Statement
  52. def getMaxRows(): Int
    Definition Classes
    LoggingStatement → Statement
  53. def getMetaData(): ResultSetMetaData
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  54. def getMoreResults(): Boolean
    Definition Classes
    LoggingStatement → Statement
  55. def getMoreResults(current: Int): Boolean
    Definition Classes
    LoggingStatement → Statement
  56. def getParameterMetaData(): ParameterMetaData
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  57. def getQueryTimeout(): Int
    Definition Classes
    LoggingStatement → Statement
  58. def getResultSet(): ResultSet
    Definition Classes
    LoggingStatement → Statement
  59. def getResultSetConcurrency(): Int
    Definition Classes
    LoggingStatement → Statement
  60. def getResultSetHoldability(): Int
    Definition Classes
    LoggingStatement → Statement
  61. def getResultSetType(): Int
    Definition Classes
    LoggingStatement → Statement
  62. def getUpdateCount(): Int
    Definition Classes
    LoggingStatement → Statement
  63. def getWarnings(): SQLWarning
    Definition Classes
    LoggingStatement → Statement
  64. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  65. def isCloseOnCompletion(): Boolean
    Definition Classes
    LoggingStatement → Statement
  66. def isClosed(): Boolean
    Definition Classes
    LoggingStatement → Statement
  67. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  68. def isPoolable(): Boolean
    Definition Classes
    LoggingStatement → Statement
  69. def isSimpleIdentifier(arg0: String): Boolean
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  70. def isWrapperFor(iface: Class[_]): Boolean
    Definition Classes
    LoggingStatement → Wrapper
  71. def logged[T](sql: String, what: String = "statement")(f: => T): T
    Attributes
    protected[this]
    Definition Classes
    LoggingStatement
  72. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  73. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  74. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  75. def p(idx: Int, tpe: Any, value: Any): Unit

    log a parameter

    log a parameter

    Attributes
    protected[this]
    Definition Classes
    LoggingStatement
  76. def pushParams: Unit
    Attributes
    protected[this]
    Definition Classes
    LoggingStatement
  77. def setArray(i: Int, v: Array): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  78. def setAsciiStream(i: Int, v: InputStream, len: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  79. def setAsciiStream(i: Int, v: InputStream, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  80. def setAsciiStream(i: Int, v: InputStream): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  81. def setBigDecimal(i: Int, v: BigDecimal): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  82. def setBinaryStream(i: Int, v: InputStream, len: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  83. def setBinaryStream(i: Int, v: InputStream, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  84. def setBinaryStream(i: Int, v: InputStream): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  85. def setBlob(i: Int, v: Blob): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  86. def setBlob(i: Int, v: InputStream, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  87. def setBlob(i: Int, v: InputStream): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  88. def setBoolean(i: Int, v: Boolean): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  89. def setByte(i: Int, v: Byte): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  90. def setBytes(i: Int, v: Array[Byte]): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  91. def setCharacterStream(i: Int, v: Reader, len: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  92. def setCharacterStream(i: Int, v: Reader, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  93. def setCharacterStream(i: Int, v: Reader): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  94. def setClob(i: Int, v: Clob): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  95. def setClob(i: Int, v: Reader, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  96. def setClob(i: Int, v: Reader): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  97. def setCursorName(name: String): Unit
    Definition Classes
    LoggingStatement → Statement
  98. def setDate(i: Int, v: Date): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  99. def setDate(i: Int, v: Date, c: Calendar): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  100. def setDouble(i: Int, v: Double): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  101. def setEscapeProcessing(enable: Boolean): Unit
    Definition Classes
    LoggingStatement → Statement
  102. def setFetchDirection(direction: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  103. def setFetchSize(rows: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  104. def setFloat(i: Int, v: Float): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  105. def setInt(i: Int, v: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  106. def setLargeMaxRows(arg0: Long): Unit
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  107. def setLong(i: Int, v: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  108. def setMaxFieldSize(max: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  109. def setMaxRows(max: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  110. def setNCharacterStream(i: Int, v: Reader, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  111. def setNCharacterStream(i: Int, v: Reader): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  112. def setNClob(i: Int, v: NClob): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  113. def setNClob(i: Int, v: Reader, len: Long): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  114. def setNClob(i: Int, v: Reader): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  115. def setNString(i: Int, v: String): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  116. def setNull(i: Int, tp: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  117. def setNull(i: Int, tp: Int, tpStr: String): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  118. def setObject(i: Int, v: Any): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  119. def setObject(i: Int, v: Any, tp: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  120. def setObject(i: Int, v: Any, tp: Int, scl: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  121. def setObject(arg0: Int, arg1: AnyRef, arg2: SQLType): Unit
    Definition Classes
    PreparedStatement
    Annotations
    @throws(classOf[java.sql.SQLException])
  122. def setObject(arg0: Int, arg1: AnyRef, arg2: SQLType, arg3: Int): Unit
    Definition Classes
    PreparedStatement
    Annotations
    @throws(classOf[java.sql.SQLException])
  123. def setPoolable(poolable: Boolean): Unit
    Definition Classes
    LoggingStatement → Statement
  124. def setQueryTimeout(seconds: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  125. def setRef(i: Int, v: Ref): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  126. def setRowId(i: Int, v: RowId): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  127. def setSQLXML(i: Int, v: SQLXML): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  128. def setShort(i: Int, v: Short): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  129. def setString(i: Int, v: String): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  130. def setTime(i: Int, v: Time): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  131. def setTime(i: Int, v: Time, c: Calendar): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  132. def setTimestamp(i: Int, v: Timestamp): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  133. def setTimestamp(i: Int, v: Timestamp, c: Calendar): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  134. def setURL(i: Int, v: URL): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
  135. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  136. def toString(): String
    Definition Classes
    AnyRef → Any
  137. def unwrap[T](iface: Class[T]): T
    Definition Classes
    LoggingStatement → Wrapper
  138. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  139. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  140. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. 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 of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def setUnicodeStream(i: Int, v: InputStream, len: Int): Unit
    Definition Classes
    LoggingPreparedStatement → PreparedStatement
    Annotations
    @deprecated
    Deprecated

    (Since version ) setUnicodeStream is deprecated

  4. 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.

Inherited from PreparedStatement

Inherited from LoggingStatement

Inherited from Statement

Inherited from AutoCloseable

Inherited from Wrapper

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromLoggingPreparedStatement to StringFormat[LoggingPreparedStatement]

Inherited by implicit conversion Ensuring fromLoggingPreparedStatement to Ensuring[LoggingPreparedStatement]

Inherited by implicit conversion ArrowAssoc fromLoggingPreparedStatement to ArrowAssoc[LoggingPreparedStatement]

Ungrouped