org.equanda.ymport
Class ImportWorkerUtil

java.lang.Object
  extended by org.equanda.ymport.ImportWorkerUtil

public final class ImportWorkerUtil
extends Object

Utility class, routines and fields needed both in the servlet and in the generator used in GUI

Author:
NetRom team

Field Summary
static char COMMENT_CHAR1
           
static char COMMENT_CHAR2
           
static char DIRECTIVE_CHAR
           
static String FAILURE
           
static String TABLE_DIRECTIVE_START
           
 
Method Summary
static String failure(int line, String msg)
          build failure message
static boolean isComment(String line)
           
static boolean isDirective(String line)
           
static boolean isEmptyLine(String line)
           
static boolean isTableDirective(String line)
           
static void rollback(UserTransaction tx)
          Utility routine to rollback a UserTransaction if it exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAILURE

public static final String FAILURE
See Also:
Constant Field Values

TABLE_DIRECTIVE_START

public static final String TABLE_DIRECTIVE_START
See Also:
Constant Field Values

COMMENT_CHAR1

public static final char COMMENT_CHAR1
See Also:
Constant Field Values

COMMENT_CHAR2

public static final char COMMENT_CHAR2
See Also:
Constant Field Values

DIRECTIVE_CHAR

public static final char DIRECTIVE_CHAR
See Also:
Constant Field Values
Method Detail

failure

public static String failure(int line,
                             String msg)
build failure message

Parameters:
line - line number at which failure occured
msg - error message
Returns:
complete failure message

isComment

public static boolean isComment(String line)

isDirective

public static boolean isDirective(String line)

isTableDirective

public static boolean isTableDirective(String line)

isEmptyLine

public static boolean isEmptyLine(String line)

rollback

public static void rollback(UserTransaction tx)
Utility routine to rollback a UserTransaction if it exists

Parameters:
tx - UserTransaction which needs to be rolled back


Copyright © 2007-2009. All Rights Reserved.