trait Session extends Closeable

A database session which opens a connection and transaction on demand.

Self Type
Session
Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Session
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def capabilities: DatabaseCapabilities
  2. abstract def close(): Unit
    Definition Classes
    Session → Closeable → AutoCloseable
  3. abstract def conn: Connection
  4. abstract def metaData: DatabaseMetaData
  5. abstract def rollback(): Unit

    Call this method within a withTransaction call to roll back the current transaction after withTransaction returns.

  6. abstract def withTransaction[T](f: => T): T

    Run the supplied function within a transaction.

    Run the supplied function within a transaction. If the function throws an Exception or the session's rollback() method is called, the transaction is rolled back, otherwise it is commited when the function returns.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def concurrencyType: ResultSetConcurrency
  7. final def createStatement(cursor: ResultSetType = ForwardOnly, concurrency: ResultSetConcurrency = ReadOnly, holdability: ResultSetHoldability = Holdability.Default): Statement
  8. def cursorType: ResultSetType
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def forParameters(cursor: ResultSetType = cursorType, concurrency: ResultSetConcurrency = concurrencyType, holdability: ResultSetHoldability = holdabilityType): Session
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def holdabilityType: ResultSetHoldability
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def prepareStatement(sql: String, cursor: ResultSetType = ForwardOnly, concurrency: ResultSetConcurrency = ReadOnly, holdability: ResultSetHoldability = Holdability.Default): PreparedStatement
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def withPreparedStatement[T](sql: String, cursor: ResultSetType = ForwardOnly, concurrency: ResultSetConcurrency = ReadOnly, holdability: ResultSetHoldability = Holdability.Default)(f: (PreparedStatement) => T): T
  27. final def withStatement[T](cursor: ResultSetType = ForwardOnly, concurrency: ResultSetConcurrency = ReadOnly, holdability: ResultSetHoldability = Holdability.Default)(f: (Statement) => T): T

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped