From b3e46bd82176a1787a0940ced23964d1a2801f60 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 25 Jan 2005 16:13:48 +0000 Subject: [PATCH] Added getTransactionName() plus a few JavaDoc comments. --- src/helma/objectmodel/db/Transactor.java | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/helma/objectmodel/db/Transactor.java b/src/helma/objectmodel/db/Transactor.java index 50d4869b..75ed98fb 100644 --- a/src/helma/objectmodel/db/Transactor.java +++ b/src/helma/objectmodel/db/Transactor.java @@ -185,9 +185,10 @@ public class Transactor extends Thread { } /** + * Start a new transaction with the given name. * - * - * @param name ... + * @param name The name of the transaction. This is usually the request + * path for the underlying HTTP request. * * @throws Exception ... */ @@ -210,7 +211,7 @@ public class Transactor extends Thread { } /** - * + * Commit the current transaction, persisting all changes to DB. * * @throws Exception ... */ @@ -353,7 +354,7 @@ public class Transactor extends Thread { } /** - * + * Abort the current transaction, rolling back all changes made. * * @throws Exception ... */ @@ -400,7 +401,7 @@ public class Transactor extends Thread { } /** - * + * Kill this transaction thread. Used as last measure only. */ public synchronized void kill() { killed = true; @@ -445,7 +446,15 @@ public class Transactor extends Thread { } /** - * + * Return the name of the current transaction. This is usually the request + * path for the underlying HTTP request. + */ + public String getTransactionName() { + return tname; + } + + /** + * Return a string representation of this Transactor thread * * @return ... */