org.equanda.ymport
Class ImportWorkerUtil
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
failure
public static String failure(int line,
String msg)
- build failure message
- Parameters:
line
- line number at which failure occuredmsg
- 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.