public class QueryUtility extends Object
| Constructor and Description |
|---|
QueryUtility() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeSearchParameter(String value)
Given the settings for the current DatabaseType, properly handle escaping special SQL characters.
|
static String |
formatSearchParameter(String value)
Given the settings for the current DatabaseType, properly handle escaping special SQL characters as
well as UPCASING the value (standard for rhq filter searches) and wrapping with SQL wildcard for
implicit "contains" (i.e.
|
static String |
getEscapeCharacter()
Get the proper ESCAPE clause character for the current DatabaseType.
|
static String |
getEscapeClause()
Get the proper LIKE operator escape clause for the current DatabaseType.
|
static String |
getEscapeClauseCharacter()
Get the proper ESCAPE clause character for the current DatabaseType.
|
public static String escapeSearchParameter(String value)
value - public static String formatSearchParameter(String value)
value - public static String getEscapeClause()
public static String getEscapeClauseCharacter()
public static String getEscapeCharacter()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.