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

    log a parameter

    log a parameter

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

    (Since version 9)

  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 any2stringadd fromLoggingPreparedStatement to any2stringadd[LoggingPreparedStatement]

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