public class CriteriaAdapter extends Object implements org.springframework.jdbc.core.namedparam.SqlParameterSource, QueryFilter
SqlParameterSource to be used to map HTTP URL
parameters to the SQL parameters.| Constructor and Description |
|---|
CriteriaAdapter(long offset,
long limit,
Map<String,String[]> params)
Instantiates a new criteria adapter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSqlType(String paramName) |
String |
getTypeName(String paramName) |
Object |
getValue(String paramName) |
String |
getWhereClause()
This method should return where clause according to
filtering conditions.
|
boolean |
hasValue(String paramName) |
public boolean hasValue(String paramName)
hasValue in interface org.springframework.jdbc.core.namedparam.SqlParameterSourcepublic Object getValue(String paramName) throws IllegalArgumentException
getValue in interface org.springframework.jdbc.core.namedparam.SqlParameterSourceIllegalArgumentExceptionpublic int getSqlType(String paramName)
getSqlType in interface org.springframework.jdbc.core.namedparam.SqlParameterSourcepublic String getTypeName(String paramName)
getTypeName in interface org.springframework.jdbc.core.namedparam.SqlParameterSourcepublic String getWhereClause()
QueryFiltergetWhereClause in interface QueryFilterCopyright © 2011–2016 Talend Inc.. All rights reserved.