|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.sql.ExpressionBinder com.esri.gpt.framework.sql.HttpExpressionBinder
public class HttpExpressionBinder
Aids in the process of binding HTTP request parameters to SQL expressions.
Field Summary | |
---|---|
static String |
PARAMETERTYPE_DOUBLE
Parameter type: "Double" |
static String |
PARAMETERTYPE_INTEGER
Parameter type: "Integer" |
static String |
PARAMETERTYPE_STRING
Parameter type: "String" |
Constructor Summary | |
---|---|
HttpExpressionBinder(HttpServletRequest request)
Constructor |
Method Summary | |
---|---|
void |
parse(String parameter,
String field,
boolean forceUpper,
boolean forceLike)
Parses the HTTP resquest, binding a parameter value to an SQL field. |
void |
parse(String parameter,
String field,
String delimiter,
boolean forceUpper,
boolean forceLike)
Parses the HTTP resquest, binding parameter values to an SQL field. |
void |
parse(String parameter,
String field,
String operator,
String parameterType)
Parses the HTTP resquest, binding a parameter value to an SQL field. |
void |
parse(String parameter,
String field,
String operator,
String delimiter,
String parameterType)
Parses the HTTP resquest, binding parameter values to an SQL field. |
Methods inherited from class com.esri.gpt.framework.sql.ExpressionBinder |
---|
addBinding, addBinding, addBindings, addBindings, addClause, applyBindings, getBindings, getExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAMETERTYPE_DOUBLE
public static final String PARAMETERTYPE_INTEGER
public static final String PARAMETERTYPE_STRING
Constructor Detail |
---|
public HttpExpressionBinder(HttpServletRequest request)
request
- the HTTP servlet rquestMethod Detail |
---|
public void parse(String parameter, String field, String operator, String parameterType)
parameter
- the HTTP request parameter namefield
- the SQL field nameoperator
- the SQL operator examples: =, !=, >, >=, <, <=, LIKE, ...parameterType
- the parameter type (HttpExpressionBinder.PARAMETERTYPE_*)public void parse(String parameter, String field, String operator, String delimiter, String parameterType)
parameter
- the HTTP request parameter namefield
- the SQL field nameoperator
- the SQL operator examples: =, !=, >, >=, <, <=, LIKE, ...delimiter
- a delimiter to tokenize values (can be null)parameterType
- the parameter type (HttpExpressionBinder.PARAMETERTYPE_*)public void parse(String parameter, String field, boolean forceUpper, boolean forceLike)
parameter
- the HTTP request parameter namefield
- the SQL field nameforceUpper
- force an upper case comparisonforceLike
- for an SQL LIKE operatorpublic void parse(String parameter, String field, String delimiter, boolean forceUpper, boolean forceLike)
parameter
- the HTTP request parameter namefield
- the SQL field namedelimiter
- a delimiter to tokenize values (can be null)forceUpper
- force an upper case comparisonforceLike
- for an SQL LIKE operator
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |