Package org.mybatis.dynamic.sql.util
Class FragmentAndParameters
java.lang.Object
org.mybatis.dynamic.sql.util.FragmentAndParameters
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfragment()
static FragmentAndParameters
fromFragment
(String fragment) mapFragment
(UnaryOperator<String> mapper) Return a new instance with the same parameters and a transformed fragment.withFragment
(String fragment)
-
Method Details
-
fragment
-
parameters
-
mapFragment
Return a new instance with the same parameters and a transformed fragment.- Parameters:
mapper
- a function that can change the value of the fragment- Returns:
- a new instance with the same parameters and a transformed fragment
-
withFragment
-
fromFragment
-