public class StaticText extends Object implements ITextTag
     <update id="updateAuthor2" type="NATIVE">
       update Author
       <set>
         <if test="username != null">username = #{username},</if>
         <if test="password != null">password = #{password},</if>
         <if test="email != null">email = #{email},</if>
         <if test="bio != null">bio = #{bio},</if>
       </set>
       where id=#{id}
   </update>
 
 
 Here we have two StaticText objects:
 
 update Authorand
 where id=#{id}
 | Constructor and Description | 
|---|
StaticText(String text)
build static text object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
eval(Object rootObjects)
Evaluate if attribute test is true. 
 | 
List<? extends ITextTag> | 
getTags()
Collections from inner tags ( 
WhereTag, SetTag...) | 
String | 
getText()
Retrieve the text from XML element. 
 | 
String | 
getText(Object rootObjects)
Evaluate if attribute test is true or false with OGNL expression. 
 | 
boolean | 
isDynamic()
Indicate if text is dynamic or static. 
 | 
boolean | 
isDynamicGroup()
Indicate if text contains a dynamic group of tags like: SetTag and WhereTag. 
 | 
public StaticText(String text)
text - staticpublic String getText(Object rootObjects)
ITextTagpublic boolean isDynamic()
public boolean isDynamicGroup()
ITextTagisDynamicGroup in interface ITextTagCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.