SessionFactory

org.squeryl.SessionFactory$
See theSessionFactory companion trait

Attributes

Companion
trait
Source
Session.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Attributes

Source
Session.scala

Concrete fields

var concreteFactory: Option[() => AbstractSession]

Initializing concreteFactory with a Session creating closure enables the use of the 'transaction' and 'inTransaction' block functions

Initializing concreteFactory with a Session creating closure enables the use of the 'transaction' and 'inTransaction' block functions

Attributes

Source
Session.scala

Initializing externalTransactionManagementAdapter with a Session creating closure allows to execute Squeryl statements without the need of using 'transaction' and 'inTransaction'. The use case for this is to allow Squeryl connection/transactions to be managed by an external framework. In this case Session.cleanupResources needs to be called when connections are closed, otherwise statement of resultset leaks can occur.

Initializing externalTransactionManagementAdapter with a Session creating closure allows to execute Squeryl statements without the need of using 'transaction' and 'inTransaction'. The use case for this is to allow Squeryl connection/transactions to be managed by an external framework. In this case Session.cleanupResources needs to be called when connections are closed, otherwise statement of resultset leaks can occur.

Attributes

Source
Session.scala