Packages

c

slick.jdbc

LoggingStatement

class LoggingStatement extends Statement

A wrapper for java.sql.Statement that logs statements and benchmark results to the appropriate JdbcBackend loggers.

Source
LoggingStatement.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingStatement
  2. Statement
  3. AutoCloseable
  4. Wrapper
  5. AnyRef
  6. 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 LoggingStatement(st: Statement)

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): (LoggingStatement, B)
    Implicit
    This member is added by an implicit conversion from LoggingStatement toArrowAssoc[LoggingStatement] 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(sql: String): Unit
    Definition Classes
    LoggingStatement → Statement
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cancel(): Unit
    Definition Classes
    LoggingStatement → Statement
  8. def clearBatch(): Unit
    Definition Classes
    LoggingStatement → Statement
  9. def clearParamss: Unit
    Attributes
    protected[this]
  10. def clearWarnings(): Unit
    Definition Classes
    LoggingStatement → Statement
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def close(): Unit
    Definition Classes
    LoggingStatement → Statement → AutoCloseable
  13. def closeOnCompletion(): Unit
    Definition Classes
    LoggingStatement → Statement
  14. def enquoteIdentifier(arg0: String, arg1: Boolean): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  15. def enquoteLiteral(arg0: String): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  16. def enquoteNCharLiteral(arg0: String): String
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  17. def ensuring(cond: (LoggingStatement) => Boolean, msg: => Any): LoggingStatement
    Implicit
    This member is added by an implicit conversion from LoggingStatement toEnsuring[LoggingStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (LoggingStatement) => Boolean): LoggingStatement
    Implicit
    This member is added by an implicit conversion from LoggingStatement toEnsuring[LoggingStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): LoggingStatement
    Implicit
    This member is added by an implicit conversion from LoggingStatement toEnsuring[LoggingStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): LoggingStatement
    Implicit
    This member is added by an implicit conversion from LoggingStatement toEnsuring[LoggingStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def execute(sql: String): Boolean
    Definition Classes
    LoggingStatement → Statement
  24. def execute(sql: String, autoGeneratedKeys: Int): Boolean
    Definition Classes
    LoggingStatement → Statement
  25. def execute(sql: String, columnIndexes: Array[Int]): Boolean
    Definition Classes
    LoggingStatement → Statement
  26. def execute(sql: String, columnNames: Array[String]): Boolean
    Definition Classes
    LoggingStatement → Statement
  27. def executeBatch(): Array[Int]
    Definition Classes
    LoggingStatement → Statement
  28. def executeLargeBatch(): Array[Long]
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  29. def executeLargeUpdate(arg0: String, arg1: Array[String]): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  30. def executeLargeUpdate(arg0: String, arg1: Array[Int]): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  31. def executeLargeUpdate(arg0: String, arg1: Int): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  32. def executeLargeUpdate(arg0: String): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  33. def executeQuery(sql: String): ResultSet
    Definition Classes
    LoggingStatement → Statement
  34. def executeUpdate(sql: String): Int
    Definition Classes
    LoggingStatement → Statement
  35. def executeUpdate(sql: String, autoGeneratedKeys: Int): Int
    Definition Classes
    LoggingStatement → Statement
  36. def executeUpdate(sql: String, columnIndexes: Array[Int]): Int
    Definition Classes
    LoggingStatement → Statement
  37. def executeUpdate(sql: String, columnNames: Array[String]): Int
    Definition Classes
    LoggingStatement → Statement
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def getConnection(): Connection
    Definition Classes
    LoggingStatement → Statement
  40. def getFetchDirection(): Int
    Definition Classes
    LoggingStatement → Statement
  41. def getFetchSize(): Int
    Definition Classes
    LoggingStatement → Statement
  42. def getGeneratedKeys(): ResultSet
    Definition Classes
    LoggingStatement → Statement
  43. def getLargeMaxRows(): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  44. def getLargeUpdateCount(): Long
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  45. def getMaxFieldSize(): Int
    Definition Classes
    LoggingStatement → Statement
  46. def getMaxRows(): Int
    Definition Classes
    LoggingStatement → Statement
  47. def getMoreResults(): Boolean
    Definition Classes
    LoggingStatement → Statement
  48. def getMoreResults(current: Int): Boolean
    Definition Classes
    LoggingStatement → Statement
  49. def getQueryTimeout(): Int
    Definition Classes
    LoggingStatement → Statement
  50. def getResultSet(): ResultSet
    Definition Classes
    LoggingStatement → Statement
  51. def getResultSetConcurrency(): Int
    Definition Classes
    LoggingStatement → Statement
  52. def getResultSetHoldability(): Int
    Definition Classes
    LoggingStatement → Statement
  53. def getResultSetType(): Int
    Definition Classes
    LoggingStatement → Statement
  54. def getUpdateCount(): Int
    Definition Classes
    LoggingStatement → Statement
  55. def getWarnings(): SQLWarning
    Definition Classes
    LoggingStatement → Statement
  56. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  57. def isCloseOnCompletion(): Boolean
    Definition Classes
    LoggingStatement → Statement
  58. def isClosed(): Boolean
    Definition Classes
    LoggingStatement → Statement
  59. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  60. def isPoolable(): Boolean
    Definition Classes
    LoggingStatement → Statement
  61. def isSimpleIdentifier(arg0: String): Boolean
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  62. def isWrapperFor(iface: Class[_]): Boolean
    Definition Classes
    LoggingStatement → Wrapper
  63. def logged[T](sql: String, what: String = "statement")(f: => T): T
    Attributes
    protected[this]
  64. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  65. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  66. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  67. def p(idx: Int, tpe: Any, value: Any): Unit

    log a parameter

    log a parameter

    Attributes
    protected[this]
  68. def pushParams: Unit
    Attributes
    protected[this]
  69. def setCursorName(name: String): Unit
    Definition Classes
    LoggingStatement → Statement
  70. def setEscapeProcessing(enable: Boolean): Unit
    Definition Classes
    LoggingStatement → Statement
  71. def setFetchDirection(direction: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  72. def setFetchSize(rows: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  73. def setLargeMaxRows(arg0: Long): Unit
    Definition Classes
    Statement
    Annotations
    @throws(classOf[java.sql.SQLException])
  74. def setMaxFieldSize(max: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  75. def setMaxRows(max: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  76. def setPoolable(poolable: Boolean): Unit
    Definition Classes
    LoggingStatement → Statement
  77. def setQueryTimeout(seconds: Int): Unit
    Definition Classes
    LoggingStatement → Statement
  78. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  79. def toString(): String
    Definition Classes
    AnyRef → Any
  80. def unwrap[T](iface: Class[T]): T
    Definition Classes
    LoggingStatement → Wrapper
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  82. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  83. 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 LoggingStatement toStringFormat[LoggingStatement] 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 [B](y: B): (LoggingStatement, B)
    Implicit
    This member is added by an implicit conversion from LoggingStatement toArrowAssoc[LoggingStatement] 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 Statement

Inherited from AutoCloseable

Inherited from Wrapper

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromLoggingStatement to StringFormat[LoggingStatement]

Inherited by implicit conversion Ensuring fromLoggingStatement to Ensuring[LoggingStatement]

Inherited by implicit conversion ArrowAssoc fromLoggingStatement to ArrowAssoc[LoggingStatement]

Ungrouped