Class DynamicSql
java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.dynamic.DynamicSql
- All Implemented Interfaces:
DynamicParent
,Sql
The Class DynamicSql.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the child.void
cleanup
(StatementScope statementScope) Cleanup.getParameterMap
(StatementScope statementScope, Object parameterObject) Gets the parameter map.getResultMap
(StatementScope statementScope, Object parameterObject) Gets the result map.getSql
(StatementScope statementScope, Object parameterObject) Gets the sql.protected void
iteratePropertyReplace
(StringBuilder bodyContent, IterateContext iterate) Iterate property replace.protected static void
replace
(StringBuilder builder, String find, String replace) Replace.
-
Constructor Details
-
DynamicSql
Instantiates a new dynamic sql.- Parameters:
delegate
- the delegate
-
-
Method Details
-
getSql
Description copied from interface:Sql
Gets the sql. -
getParameterMap
Description copied from interface:Sql
Gets the parameter map.- Specified by:
getParameterMap
in interfaceSql
- Parameters:
statementScope
- the statement scopeparameterObject
- the parameter object- Returns:
- the parameter map
-
getResultMap
Description copied from interface:Sql
Gets the result map.- Specified by:
getResultMap
in interfaceSql
- Parameters:
statementScope
- the statement scopeparameterObject
- the parameter object- Returns:
- the result map
-
cleanup
Description copied from interface:Sql
Cleanup. -
iteratePropertyReplace
Iterate property replace.- Parameters:
bodyContent
- the body contentiterate
- the iterate
-
replace
Replace.- Parameters:
builder
- the builderfind
- the findreplace
- the replace
-
addChild
Description copied from interface:DynamicParent
Adds the child.- Specified by:
addChild
in interfaceDynamicParent
- Parameters:
child
- the child
-