Packages

class BaseSession extends JdbcSessionDef

Source
JdbcBackend.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseSession
  2. JdbcSessionDef
  3. BasicSessionDef
  4. Closeable
  5. AutoCloseable
  6. AnyRef
  7. 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 BaseSession(database: Database)

Value Members

  1. def capabilities: DatabaseCapabilities
    Definition Classes
    BaseSessionJdbcSessionDef
  2. def close(): Unit

    Close this Session.

    Close this Session.

    Definition Classes
    BaseSessionJdbcSessionDefBasicSessionDef → Closeable → AutoCloseable
  3. val conn: Connection
    Definition Classes
    BaseSessionJdbcSessionDef
  4. final def createStatement(defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default): Statement
    Definition Classes
    JdbcSessionDef
  5. val database: Database
    Definition Classes
    BaseSessionJdbcSessionDef
  6. def decorateStatement[S <: Statement](statement: S): S
    Definition Classes
    JdbcSessionDef
  7. def fetchSize: Int
    Definition Classes
    JdbcSessionDef
  8. def force(): Unit

    Force an actual database session to be opened.

    Force an actual database session to be opened. Slick sessions are lazy, so you do not get a real database connection until you need it or you call force() on the session.

    Definition Classes
    JdbcSessionDefBasicSessionDef
  9. def getTransactionality: (Int, Boolean)
  10. def isInTransaction: Boolean
  11. lazy val metaData: DatabaseMetaData
    Definition Classes
    BaseSessionJdbcSessionDef
  12. final def prepareInsertStatement(sql: String, columnIndexes: Array[Int]): PreparedStatement
    Definition Classes
    JdbcSessionDef
  13. final def prepareInsertStatement(sql: String, columnNames: Array[String] = new Array[String](0)): PreparedStatement
    Definition Classes
    JdbcSessionDef
  14. final def prepareStatement(sql: String, defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default, fetchSizeOverride: Option[Int] = None): PreparedStatement
    Definition Classes
    JdbcSessionDef
  15. def resultSetConcurrency: ResultSetConcurrency
    Definition Classes
    JdbcSessionDef
  16. def resultSetHoldability: ResultSetHoldability
    Definition Classes
    JdbcSessionDef
  17. def resultSetType: ResultSetType
    Definition Classes
    JdbcSessionDef
  18. final def withPreparedInsertStatement[T](sql: String, columnIndexes: Array[Int])(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

    Definition Classes
    JdbcSessionDef
  19. final def withPreparedInsertStatement[T](sql: String, columnNames: Array[String] = new Array[String](0))(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

    Definition Classes
    JdbcSessionDef
  20. final def withPreparedStatement[T](sql: String, defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default)(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareStatement method, that automatically closes the statement.

    A wrapper around the JDBC Connection's prepareStatement method, that automatically closes the statement.

    Definition Classes
    JdbcSessionDef
  21. final def withStatement[T](defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default)(f: (Statement) => T): T

    A wrapper around the JDBC Connection's createStatement method, that automatically closes the statement.

    A wrapper around the JDBC Connection's createStatement method, that automatically closes the statement.

    Definition Classes
    JdbcSessionDef