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 DATE_FORMAT_PROPERTY
           
static String TIMEZONE_SUPPORT_PROPERTY
           
 
Method Summary
static String conditionTypeToSqlOperator(ConditionType ct, String value)
           
static SimpleDateFormat getDateFormat(Map<String,String> properties, String defaultFormat)
           
static boolean isTimeZoneSupported(Map<String,String> properties, Boolean defaultValue)
           
static void startSqlQuery(StringBuilder sb, String table, String... columns)
           
static
<T> String
toSQL(SearchCondition<T> sc, String table, String... columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

getDateFormat

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

isTimeZoneSupported

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

toSQL

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

startSqlQuery

public static void startSqlQuery(StringBuilder sb,
                                 String table,
                                 String... columns)

conditionTypeToSqlOperator

public static String conditionTypeToSqlOperator(ConditionType ct,
                                                String value)

Apache CXF API

Apache CXF