Apache CXF API

org.apache.cxf.jaxrs.ext.search
Class SearchUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.SearchUtils

public final class SearchUtils
extends Object


Field Summary
static String BEAN_PROPERTY_MAP
           
static String DATE_FORMAT_PROPERTY
           
static String DEFAULT_DATE_FORMAT
           
static String LAX_PROPERTY_MATCH
           
static String SEARCH_VISITOR_PROPERTY
           
static String TIMEZONE_SUPPORT_PROPERTY
           
 
Method Summary
static String conditionTypeToSqlOperator(ConditionType ct, String value)
           
static boolean containsEscapedChar(String value)
           
static boolean containsEscapedPercent(String value)
           
static String duplicateSingleQuoteIfNeeded(String value)
           
static SimpleDateFormat getDateFormat(Map<String,String> properties)
           
static boolean isTimeZoneSupported(Map<String,String> properties, Boolean defaultValue)
           
static void startSqlQuery(StringBuilder sb, String table, String tableAlias, List<String> columns)
           
static
<T> String
toSQL(SearchCondition<T> sc, String table, String... columns)
           
static String toSqlWildcardString(String value, boolean alwaysWildcard)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATE_FORMAT

public static final String DEFAULT_DATE_FORMAT
See Also:
Constant Field Values

DATE_FORMAT_PROPERTY

public static final String DATE_FORMAT_PROPERTY
See Also:
Constant Field Values

TIMEZONE_SUPPORT_PROPERTY

public static final String TIMEZONE_SUPPORT_PROPERTY
See Also:
Constant Field Values

LAX_PROPERTY_MATCH

public static final String LAX_PROPERTY_MATCH
See Also:
Constant Field Values

BEAN_PROPERTY_MAP

public static final String BEAN_PROPERTY_MAP
See Also:
Constant Field Values

SEARCH_VISITOR_PROPERTY

public static final String SEARCH_VISITOR_PROPERTY
See Also:
Constant Field Values
Method Detail

getDateFormat

public static SimpleDateFormat getDateFormat(Map<String,String> properties)

isTimeZoneSupported

public static boolean isTimeZoneSupported(Map<String,String> properties,
                                          Boolean defaultValue)

toSQL

public static <T> String toSQL(SearchCondition<T> sc,
                               String table,
                               String... columns)

toSqlWildcardString

public static String toSqlWildcardString(String value,
                                         boolean alwaysWildcard)

duplicateSingleQuoteIfNeeded

public static String duplicateSingleQuoteIfNeeded(String value)

containsEscapedChar

public static boolean containsEscapedChar(String value)

containsEscapedPercent

public static boolean containsEscapedPercent(String value)

startSqlQuery

public static void startSqlQuery(StringBuilder sb,
                                 String table,
                                 String tableAlias,
                                 List<String> columns)

conditionTypeToSqlOperator

public static String conditionTypeToSqlOperator(ConditionType ct,
                                                String value)

Apache CXF API

Apache CXF