Java Doc for IterateContext.java in  » Database-ORM » iBATIS » com » ibatis » sqlmap » engine » mapping » sql » dynamic » elements » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » iBATIS » com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.IterateContext

IterateContext
public class IterateContext implements Iterator(Code)

author:
   Brandon Goodin



Constructor Summary
public  IterateContext(Object collection, SqlTag tag, IterateContext parent)
    

Method Summary
protected  MapaddIndex(String input, int startIndex)
     Adds index value to the first found property matching this Iteration starting at index startIndex.
Parameters:
  input - The input String.
Parameters:
  startIndex - The index where search for property begins.
public  StringaddIndexToTagProperty(String tagProperty)
     Replaces value of a tag property to match it's value with current iteration and all other iterations.
Parameters:
  tagProperty - the property of a TagHandler.
public  StringgetEndProperty()
     Returns the last property of any bean specified in this IterateContext.
public  intgetIndex()
    
public  IterateContextgetParent()
    
public  StringgetProperty()
    
public  SqlTaggetTag()
    
public  booleanhasNext()
    
public  booleanisAllowNext()
    
public  booleanisFinal()
    
public  booleanisFirst()
    
public  booleanisLast()
    
public  booleanisPrependEnabled()
    
public  Objectnext()
    
protected  MapprocessTagProperty(String tagProperty)
     Replaces value of a tag property to match it's value with current iteration and all other iterations.
Parameters:
  tagProperty - the property of a TagHandler.
public  voidremove()
    
public  voidsetAllowNext(boolean performIterate)
    
public  voidsetFinal(boolean aFinal)
     This attribute is used to mark whether an iterate tag is in it's final iteration.
public  voidsetParent(IterateContext parent)
    
public  voidsetPrependEnabled(boolean isPrependEnabled)
    
public  voidsetProperty(String property)
     This property specifies whether to increment the iterate in the doEndFragment.
public  voidsetSomeSubElementsHaveContent(boolean someSubElementsHaveContent)
    
public  voidsetTag(SqlTag tag)
    
public  booleansomeSubElementsHaveContent()
    


Constructor Detail
IterateContext
public IterateContext(Object collection, SqlTag tag, IterateContext parent)(Code)




Method Detail
addIndex
protected Map addIndex(String input, int startIndex)(Code)
Adds index value to the first found property matching this Iteration starting at index startIndex.
Parameters:
  input - The input String.
Parameters:
  startIndex - The index where search for property begins. A Map containing the modified tag property in PROCESS_STRING key and the index where the modification occured in PROCESS_INDEX key.



addIndexToTagProperty
public String addIndexToTagProperty(String tagProperty)(Code)
Replaces value of a tag property to match it's value with current iteration and all other iterations.
Parameters:
  tagProperty - the property of a TagHandler. The tag property with all "[]" replaced with the correct iteration value.



getEndProperty
public String getEndProperty()(Code)
Returns the last property of any bean specified in this IterateContext. The last property of any bean specified in this IterateContext.



getIndex
public int getIndex()(Code)



getParent
public IterateContext getParent()(Code)



getProperty
public String getProperty()(Code)
Returns the property.



getTag
public SqlTag getTag()(Code)
Returns the tag.



hasNext
public boolean hasNext()(Code)



isAllowNext
public boolean isAllowNext()(Code)
Returns the allowNext.



isFinal
public boolean isFinal()(Code)



isFirst
public boolean isFirst()(Code)



isLast
public boolean isLast()(Code)



isPrependEnabled
public boolean isPrependEnabled()(Code)



next
public Object next()(Code)



processTagProperty
protected Map processTagProperty(String tagProperty)(Code)
Replaces value of a tag property to match it's value with current iteration and all other iterations.
Parameters:
  tagProperty - the property of a TagHandler. A Map containing the modified tag property in PROCESS_STRING key and the index where the modification occured in PROCESS_INDEX key.



remove
public void remove()(Code)



setAllowNext
public void setAllowNext(boolean performIterate)(Code)

Parameters:
  performIterate - The allowNext to set.



setFinal
public void setFinal(boolean aFinal)(Code)
This attribute is used to mark whether an iterate tag is in it's final iteration. Since the ConditionalTagHandler can increment the iterate the final iterate in the doEndFragment of the IterateTagHandler needs to know it is in it's final iterate.
Parameters:
  aFinal -



setParent
public void setParent(IterateContext parent)(Code)



setPrependEnabled
public void setPrependEnabled(boolean isPrependEnabled)(Code)



setProperty
public void setProperty(String property)(Code)
This property specifies whether to increment the iterate in the doEndFragment. The ConditionalTagHandler has the ability to increment the IterateContext, so it is neccessary to avoid incrementing in both the ConditionalTag and the IterateTag.
Parameters:
  property - The property to set.



setSomeSubElementsHaveContent
public void setSomeSubElementsHaveContent(boolean someSubElementsHaveContent)(Code)



setTag
public void setTag(SqlTag tag)(Code)

Parameters:
  tag - The tag to set.



someSubElementsHaveContent
public boolean someSubElementsHaveContent()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w___w__w_._j___a___v___a__2__s___.___co___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.