class LoggingStatement extends Statement
A wrapper for java.sql.Statement
that logs statements and benchmark results
to the appropriate JdbcBackend loggers.
- Source
- LoggingStatement.scala
- Alphabetic
- By Inheritance
- LoggingStatement
- Statement
- AutoCloseable
- Wrapper
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
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 LoggingStatement toany2stringadd[LoggingStatement] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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 clearParamss(): Unit
- Attributes
- protected[this]
- def clearWarnings(): Unit
- Definition Classes
- LoggingStatement → Statement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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: (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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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(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(sql: String): ResultSet
- Definition Classes
- LoggingStatement → Statement
- 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
- @HotSpotIntrinsicCandidate() @native()
- 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 getMoreResults(): Boolean
- Definition Classes
- LoggingStatement → Statement
- def getMoreResults(current: Int): Boolean
- Definition Classes
- LoggingStatement → Statement
- 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
- @HotSpotIntrinsicCandidate() @native()
- 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]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def p(idx: Int, tpe: Any, value: Any): Unit
log a parameter
log a parameter
- Attributes
- protected[this]
- def pushParams(): Unit
- Attributes
- protected[this]
- def setCursorName(name: String): Unit
- Definition Classes
- LoggingStatement → Statement
- 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 setLargeMaxRows(arg0: Long): Unit
- Definition Classes
- Statement
- Annotations
- @throws(classOf[java.sql.SQLException])
- def setMaxFieldSize(max: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setMaxRows(max: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- def setPoolable(poolable: Boolean): Unit
- Definition Classes
- LoggingStatement → Statement
- def setQueryTimeout(seconds: Int): Unit
- Definition Classes
- LoggingStatement → Statement
- 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
(Since version 9)
- 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 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 →[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.
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...