org.jaffa.components.maint
Class MaintTx

java.lang.Object
  extended byorg.jaffa.components.maint.MaintTx

public class MaintTx
extends Object

This is the helper class for all Maintenance Tx (transaction) classes. It is provided to support repetitive functions.

Author:
GautamJ

Constructor Summary
MaintTx()
           
 
Method Summary
static String addCommentWithStamp(String originalComment, String additionalComment, boolean lifo, HeaderDto headerDto)
          Deprecated. This function is now provided by the StringHelper class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaintTx

public MaintTx()
Method Detail

addCommentWithStamp

public static String addCommentWithStamp(String originalComment,
                                         String additionalComment,
                                         boolean lifo,
                                         HeaderDto headerDto)
Deprecated. This function is now provided by the StringHelper class.

This is a helper for combining old and additional comments. A stamp containing the userId and current time will be inserted before the additional comment. The additional comment will be inserted before the old comment if 'lifo' is true, otherwise it'll be appended.

Parameters:
originalComment - The original comment.
additionalComment - The additional comment.
lifo - This determines if the additional comment is inserted before or appended after the old comment.
headerDto - The headerDto containing the userId.
Returns:
The combination of the old comment and the additional comment.


Copyright © 2002-2004 JAFFA Project.