Package com.io7m.cardant.server.inventory.v1

# Class CA1HandlerCoreTransactional

java.lang.Object
com.io7m.cardant.server.inventory.v1.CA1HandlerCoreTransactional

All Implemented Interfaces:
  `CAHTTPHandlerFunctionalCoreType`

public final class CA1HandlerCoreTransactional extends Object implements CAHTTPHandlerFunctionalCoreType
A servlet core that executes the given core with a database transaction.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CAHTTPResponseType`
  `execute(io.helidon.webserver.http.ServerRequest request, CAHTTPRequestInformation information)`
  Execute the core.
  `static CAHTTPHandlerFunctionalCoreType`
  `withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, CAHTTPHandlerFunctionalCoreTransactionalType inCore)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### withTransaction

    public static CAHTTPHandlerFunctionalCoreType withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, CAHTTPHandlerFunctionalCoreTransactionalType inCore)
    Parameters:
      `inServices` - The services
      `inCore` - The core
    Returns:
      A servlet core that executes the given core with a database transaction

  - ### execute

    public CAHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, CAHTTPRequestInformation information)
    Description copied from interface: `CAHTTPHandlerFunctionalCoreType`
    Execute the core.
    Specified by:
      `execute` in interface `CAHTTPHandlerFunctionalCoreType`
    Parameters:
      `request` - The request
      `information` - The request information
    Returns:
      The response