Java Doc for EntityListIterator.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » entity » util » 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 » ERP CRM Financial » SourceTap CRM » org.ofbiz.entity.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.entity.util.EntityListIterator

EntityListIterator
public class EntityListIterator implements ListIterator(Code)
Generic Entity Cursor List Iterator for Handling Cursored DB Results
author:
   David E. Jones
version:
   $Revision: 1.5 $
since:
   2.0


Field Summary
protected  booleanclosed
    
protected  GenericDelegatordelegator
    
protected  booleanhaveMadeValue
    
protected  ModelEntitymodelEntity
    
protected  ModelFieldTypeReadermodelFieldTypeReader
    
final public static  Stringmodule
    
protected  ResultSetresultSet
    
protected  ListselectFields
    
protected  SQLProcessorsqlp
    

Constructor Summary
public  EntityListIterator(SQLProcessor sqlp, ModelEntity modelEntity, List selectFields, ModelFieldTypeReader modelFieldTypeReader)
    

Method Summary
public  booleanabsolute(int rowNum)
    
public  voidadd(Object obj)
    
public  voidafterLast()
    
public  voidbeforeFirst()
    
public  voidclose()
    
public  GenericValuecurrentGenericValue()
    
public  intcurrentIndex()
    
protected  voidfinalize()
    
public  booleanfirst()
    
public  ListgetCompleteList()
    
public  ListgetPartialList(int start, int number)
     Gets a partial list of results starting at start and containing at most number elements.
public  booleanhasNext()
    
public  booleanhasPrevious()
    
public  booleanlast()
    
public  Objectnext()
    
public  intnextIndex()
    
public  Objectprevious()
    
public  intpreviousIndex()
    
public  booleanrelative(int rows)
    
public  voidremove()
    
public  voidset(Object obj)
    
public  voidsetDelegator(GenericDelegator delegator)
    
public  voidsetFetchSize(int rows)
    

Field Detail
closed
protected boolean closed(Code)



delegator
protected GenericDelegator delegator(Code)



haveMadeValue
protected boolean haveMadeValue(Code)



modelEntity
protected ModelEntity modelEntity(Code)



modelFieldTypeReader
protected ModelFieldTypeReader modelFieldTypeReader(Code)



module
final public static String module(Code)
Module Name Used for debugging



resultSet
protected ResultSet resultSet(Code)



selectFields
protected List selectFields(Code)



sqlp
protected SQLProcessor sqlp(Code)




Constructor Detail
EntityListIterator
public EntityListIterator(SQLProcessor sqlp, ModelEntity modelEntity, List selectFields, ModelFieldTypeReader modelFieldTypeReader)(Code)




Method Detail
absolute
public boolean absolute(int rowNum) throws GenericEntityException(Code)
performs the same function as the ResultSet.absolute method; if rowNum is positive, goes to that position relative to the beginning of the list; if rowNum is negative, goes to that position relative to the end of the list; a rowNum of 1 is the same as first(); a rowNum of -1 is the same as last()



add
public void add(Object obj)(Code)



afterLast
public void afterLast() throws GenericEntityException(Code)
Sets the cursor position to just after the last result so that previous() will return the last result



beforeFirst
public void beforeFirst() throws GenericEntityException(Code)
Sets the cursor position to just before the first result so that next() will return the first result



close
public void close() throws GenericEntityException(Code)



currentGenericValue
public GenericValue currentGenericValue() throws GenericEntityException(Code)
NOTE: Calling this method does return the current value, but so does calling next() or previous(), so calling one of those AND this method will cause the value to be created twice



currentIndex
public int currentIndex() throws GenericEntityException(Code)



finalize
protected void finalize() throws Throwable(Code)



first
public boolean first() throws GenericEntityException(Code)
Sets the cursor position to last result; if result set is empty returns false



getCompleteList
public List getCompleteList() throws GenericEntityException(Code)



getPartialList
public List getPartialList(int start, int number) throws GenericEntityException(Code)
Gets a partial list of results starting at start and containing at most number elements. Start is a one based value, ie 1 is the first element.



hasNext
public boolean hasNext()(Code)
PLEASE NOTE: Because of the nature of the JDBC ResultSet interface this method can be very inefficient; it is much better to just use next() until it returns null



hasPrevious
public boolean hasPrevious()(Code)
PLEASE NOTE: Because of the nature of the JDBC ResultSet interface this method can be very inefficient; it is much better to just use previous() until it returns null



last
public boolean last() throws GenericEntityException(Code)
Sets the cursor position to last result; if result set is empty returns false



next
public Object next()(Code)
Moves the cursor to the next position and returns the GenericValue object for that position; if there is no next, returns null



nextIndex
public int nextIndex()(Code)
Returns the index of the next result, but does not guarantee that there will be a next result



previous
public Object previous()(Code)
Moves the cursor to the previous position and returns the GenericValue object for that position; if there is no previous, returns null



previousIndex
public int previousIndex()(Code)
Returns the index of the previous result, but does not guarantee that there will be a previous result



relative
public boolean relative(int rows) throws GenericEntityException(Code)
performs the same function as the ResultSet.relative method; if rows is positive, goes forward relative to the current position; if rows is negative, goes backward relative to the current position;



remove
public void remove()(Code)



set
public void set(Object obj)(Code)



setDelegator
public void setDelegator(GenericDelegator delegator)(Code)



setFetchSize
public void setFetchSize(int rows) throws GenericEntityException(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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.