|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.jdbc.DefaultSqlParameterSourceFactory
public class DefaultSqlParameterSourceFactory
A default implementation of SqlParameterSourceFactory
which creates an SqlParameterSource
according
to the type of the data passed in.
SqlParameterSource
is a map that contains this list under a default key of 'idList'.Map
, this is wrapped in an instance of MapSqlParameterSource
.BeanPropertySqlParameterSource
.
Constructor Summary | |
---|---|
DefaultSqlParameterSourceFactory()
|
Method Summary | |
---|---|
SqlParameterSource |
createParameterSource(Object input)
Return a new SqlParameterSource . |
void |
setIdsParameterName(String idsParamName)
Name of the id list in the output parameters if the input is a List (default "idList"). |
void |
setRowIdName(String rowIdName)
Name of the id property in the input elements when the input data is List. |
void |
setStaticParameters(Map<String,Object> staticParameters)
If the input is a List or a Map, the output is a map parameter source, and in that case some static parameters can be added (default is empty). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSqlParameterSourceFactory()
Method Detail |
---|
public void setRowIdName(String rowIdName)
rowIdName
- the name to setpublic void setIdsParameterName(String idsParamName)
idsParamName
- the name to setpublic void setStaticParameters(Map<String,Object> staticParameters)
staticParameters
- the static parameters to setpublic SqlParameterSource createParameterSource(Object input)
SqlParameterSourceFactory
SqlParameterSource
.
createParameterSource
in interface SqlParameterSourceFactory
input
- the raw message or query result to be transformed into a SqlParameterSource
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |