@Deprecated public class ThinUtil extends Object
Constructor and Description |
---|
ThinUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ValueMetaAndData |
attemptBigNumberValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
attemptBooleanValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
attemptDateValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
attemptIntegerValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
attemptNumberValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
attemptStringValueExtraction(String string)
Deprecated.
|
static ValueMetaAndData |
extractConstant(String string)
Deprecated.
|
static String |
findClause(String sqlString,
String startClause,
String... endClauses)
Deprecated.
|
static FoundClause |
findClauseWithRest(String sqlString,
String startClause,
String... endClauses)
Deprecated.
|
static int |
findNext(String sql,
char nextChar,
int index)
Deprecated.
|
static int |
findNext(String sql,
char nextChar,
int index,
boolean escape)
Deprecated.
|
static int |
findNextBracket(String sql,
char skipChar,
char nextChar,
int index)
Deprecated.
|
static int |
findNextBracket(String sql,
char skipChar,
char nextChar,
int index,
boolean escape)
Deprecated.
|
static int |
getSqlType(ValueMetaInterface valueMeta)
Deprecated.
|
static String |
getSqlTypeDesc(ValueMetaInterface valueMeta)
Deprecated.
|
static ValueMetaInterface |
getValueMeta(String valueName,
int sqlType)
Deprecated.
|
static Pattern |
like(String pattern)
Deprecated.
|
static boolean |
like(String subject,
String pattern)
Deprecated.
|
static String |
resolveFieldName(String field,
RowMetaInterface serviceFields)
Deprecated.
Attempts to resolve the reference to field from the serviceFields value meta list.
|
static int |
skipChars(String sql,
int index,
char... skipChars)
Deprecated.
|
static List<String> |
splitClause(String fieldClause,
char splitChar,
char... skipChars)
Deprecated.
|
static String |
stripNewlines(String sql)
Deprecated.
|
static String |
stripQuotes(String string,
char... quoteChars)
Deprecated.
|
static String |
stripQuotesIfNoWhitespace(String string,
char... quoteChars)
Deprecated.
Strips leading and trailing quotes if no whitespace present, and no
additional quotes in the string.
|
static String |
stripQuoteTableAlias(String field,
String tableAliasPrefix)
Deprecated.
|
static String |
stripTableAlias(String field,
String tableAliasPrefix)
Deprecated.
|
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 String stripTableAlias(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 String stripQuotesIfNoWhitespace(String string, char... quoteChars)
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
public static String resolveFieldName(String field, RowMetaInterface serviceFields)