public class ThinUtil extends Object
Constructor and Description |
---|
ThinUtil() |
Modifier and Type | Method and Description |
---|---|
static ValueMetaAndData |
attemptBigNumberValueExtraction(String string) |
static ValueMetaAndData |
attemptBooleanValueExtraction(String string) |
static ValueMetaAndData |
attemptDateValueExtraction(String string) |
static ValueMetaAndData |
attemptIntegerValueExtraction(String string) |
static ValueMetaAndData |
attemptNumberValueExtraction(String string) |
static ValueMetaAndData |
attemptStringValueExtraction(String string) |
static ValueMetaAndData |
extractConstant(String string) |
static String |
findClause(String sqlString,
String startClause,
String... endClauses) |
static FoundClause |
findClauseWithRest(String sqlString,
String startClause,
String... endClauses) |
static int |
findNext(String sql,
char nextChar,
int index) |
static int |
findNext(String sql,
char nextChar,
int index,
boolean escape) |
static int |
findNextBracket(String sql,
char skipChar,
char nextChar,
int index) |
static int |
findNextBracket(String sql,
char skipChar,
char nextChar,
int index,
boolean escape) |
static int |
getSqlType(ValueMetaInterface valueMeta) |
static String |
getSqlTypeDesc(ValueMetaInterface valueMeta) |
static ValueMetaInterface |
getValueMeta(String valueName,
int sqlType) |
static Pattern |
like(String pattern) |
static boolean |
like(String subject,
String pattern) |
static int |
skipChars(String sql,
int index,
char... skipChars) |
static List<String> |
splitClause(String fieldClause,
char splitChar,
char... skipChars) |
static String |
stripNewlines(String sql) |
static String |
stripQuotes(String string,
char... quoteChars) |
static String |
stripQuoteTableAlias(String field,
String tableAliasPrefix) |
static String |
stripTableAlias(String field,
String tableAliasPrefix) |
public static int getSqlType(ValueMetaInterface valueMeta)
public static String getSqlTypeDesc(ValueMetaInterface valueMeta)
public static ValueMetaInterface getValueMeta(String valueName, int sqlType) throws SQLException
SQLException
public static ValueMetaAndData attemptDateValueExtraction(String string)
public static ValueMetaAndData attemptIntegerValueExtraction(String string)
public static ValueMetaAndData attemptNumberValueExtraction(String string)
public static ValueMetaAndData attemptBigNumberValueExtraction(String string)
public static ValueMetaAndData attemptStringValueExtraction(String string)
public static ValueMetaAndData attemptBooleanValueExtraction(String string)
public static ValueMetaAndData extractConstant(String string)
public static String stripQuoteTableAlias(String field, String tableAliasPrefix)
public static int skipChars(String sql, int index, char... skipChars) throws KettleSQLException
KettleSQLException
public static int findNext(String sql, char nextChar, int index) throws KettleSQLException
KettleSQLException
public static int findNext(String sql, char nextChar, int index, boolean escape) throws KettleSQLException
KettleSQLException
public static int findNextBracket(String sql, char skipChar, char nextChar, int index) throws KettleSQLException
KettleSQLException
public static int findNextBracket(String sql, char skipChar, char nextChar, int index, boolean escape) throws KettleSQLException
KettleSQLException
public static List<String> splitClause(String fieldClause, char splitChar, char... skipChars) throws KettleSQLException
KettleSQLException
public static String findClause(String sqlString, String startClause, String... endClauses) throws KettleSQLException
KettleSQLException
public static FoundClause findClauseWithRest(String sqlString, String startClause, String... endClauses) throws KettleSQLException
KettleSQLException