Class TkTransaction

  • All Implemented Interfaces:
    org.takes.Take

    public class TkTransaction
    extends Object
    implements org.takes.Take
    Take that keeps all database operations made in another Take within a transaction.

    The class is immutable and thread-safe.

    Author:
    Olivier B. OURA (baudoliver7@gmail.com)
    • Field Detail

      • database

        protected final Database database
        Database
    • Constructor Detail

      • TkTransaction

        public TkTransaction​(org.takes.Take origin,
                             Database database)
        Parameters:
        origin - Origin
        database - Database
    • Method Detail

      • act

        public org.takes.Response act​(org.takes.Request req)
                               throws Exception
        Specified by:
        act in interface org.takes.Take
        Throws:
        Exception