    class Transaction(Object):

        ## Init ##
        def __init__(self, application, request=None):
        def __repr__(self):

        ## Access ##
        def application(self):
        def request(self):
        def response(self):
        def setResponse(self, response):
        def hasSession(self):
        def session(self):
        def setSession(self, session):
        def servlet(self):
        def setServlet(self, servlet):
        def duration(self):
        def errorOccurred(self):
        def setErrorOccurred(self, flag):

        ## Transaction stages ##
        def awake(self):
        def respond(self):
        def sleep(self):

        ## Debugging ##
        def dump(self, file=None):

        ## Die ##
        def die(self):

        ## Exception handling ##
        def writeExceptionReport(self, handler):