Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
lazy val
app: Application
-
def
apply[A](dbName: String)(bodyParser: BodyParser[A])(requestHandler: (DBSessionRequest[A]) ⇒ SimpleResult)(implicit app: Application): Action[A]
-
def
apply(dbName: String)(requestHandler: (DBSessionRequest[AnyContent]) ⇒ SimpleResult)(implicit app: Application): Action[AnyContent]
-
def
apply[A](bodyParser: BodyParser[A])(requestHandler: (DBSessionRequest[A]) ⇒ SimpleResult)(implicit app: Application): Action[A]
-
def
apply(requestHandler: (DBSessionRequest[AnyContent]) ⇒ SimpleResult)(implicit app: Application): Action[AnyContent]
-
def
apply(resultFunction: ⇒ SimpleResult): Action[AnyContent]
-
def
applyForDB[A](db: Database)(requestHandler: (DBSessionRequest[A]) ⇒ SimpleResult)(bodyParser: BodyParser[A])(f: ((Session) ⇒ SimpleResult) ⇒ SimpleResult)(errorPage: ⇒ Result)(implicit app: Application, executionContext: ExecutionContext = ...): Action[A]
-
final
def
asInstanceOf[T0]: T0
-
lazy val
attributes: Map[String, DBAttributes]
-
lazy val
available: Map[String, () ⇒ Boolean]
-
def
clone(): AnyRef
-
lazy val
defaultName: String
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
val
errorPage: mvc.Results.Status
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
includeFilter(name: String): Boolean
-
def
isDBAvailable(name: String): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
lazy val
testName: String
-
def
toString(): String
-
def
transaction[A](dbName: String)(bodyParser: BodyParser[A])(requestHandler: (DBSessionRequest[A]) ⇒ SimpleResult)(implicit app: Application): Action[A]
-
def
transaction[A](bodyParser: BodyParser[A])(requestHandler: (DBSessionRequest[A]) ⇒ SimpleResult)(implicit app: Application): Action[A]
-
def
transaction(requestHandler: (DBSessionRequest[AnyContent]) ⇒ SimpleResult)(implicit app: Application): Action[AnyContent]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Use the DBAction when you want to use the default settings in your controller.
By default it uses the database named by default in the configuration in all modes (Prod, Dev) except in test, where it uses test.
It is possible to define a maximum amount queries per request that can be handled at a given point to avoid overloading the application (user gets the error page instead of seeing a slow app).
The maximum amount of per requests is read from: db.<db-name>.maxQueriesPerRequest
If you need to override the default behavior, create a new object with the DefaultDBAction trait.