2 * Created on 24/08/2003
5 package com.quantum.util;
7 import java.util.StringTokenizer;
13 public class QuantumUtil {
15 * Gets the first string in a string with the structure XXXX.XXXX
16 * @param qualifiedName
17 * @return The schema name if present, else an empty string ("")
19 public static String getSchemaName(String qualifiedName) {
20 StringTokenizer st = new StringTokenizer(qualifiedName, "."); //$NON-NLS-1$
21 if (st.countTokens() > 1) {
22 return st.nextToken();
28 * Gets the second string in a string with the structure XXXX.XXXX
29 * @param qualifiedName
30 * @return The table name if present, else the received parameter
32 public static String getTableName(String qualifiedName) {
33 StringTokenizer st = new StringTokenizer(qualifiedName, "."); //$NON-NLS-1$
34 if (st.countTokens() > 1) {
36 return st.nextToken();
41 public static String trasposeEscape(String untrans){
42 String trasposed = StringUtil.substituteString(untrans, "\\n", "\n");
43 trasposed = StringUtil.substituteString(trasposed, "\\t", "\t");