Packages

class BaseSession extends SessionDef

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

Value Members

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

    Close this Session.

    Close this Session.

    Definition Classes
    BaseSessionSessionDefSessionDef → Closeable → AutoCloseable
  3. val conn: Connection
    Definition Classes
    BaseSessionSessionDef
  4. final def createStatement(defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default): Statement
    Definition Classes
    SessionDef
  5. val database: Database
    Definition Classes
    BaseSessionSessionDef
  6. def decorateStatement[S <: Statement](statement: S): S
    Definition Classes
    SessionDef
  7. def fetchSize: Int
    Definition Classes
    SessionDef
  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
    SessionDefSessionDef
  9. def getTransactionality: (Int, Boolean)
  10. def isInTransaction: Boolean
  11. lazy val metaData: DatabaseMetaData
    Definition Classes
    BaseSessionSessionDef
  12. final def prepareInsertStatement(sql: String, columnIndexes: Array[Int]): PreparedStatement
    Definition Classes
    SessionDef
  13. final def prepareInsertStatement(sql: String, columnNames: Array[String] = new Array[String](0)): PreparedStatement
    Definition Classes
    SessionDef
  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
    SessionDef
  15. def resultSetConcurrency: ResultSetConcurrency
    Definition Classes
    SessionDef
  16. def resultSetHoldability: ResultSetHoldability
    Definition Classes
    SessionDef
  17. def resultSetType: ResultSetType
    Definition Classes
    SessionDef
  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
    SessionDef
  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
    SessionDef
  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
    SessionDef
  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
    SessionDef